Archive for November, 2005

Combining GoogleMaps and holiday pictures


Because of the “GoogleMaps Risk”:http://www.ashotoforangejuice.com/gmrisk.html game I found on the internet a week ago, I had an idea about showing some photo’s on the absolute location on the world map.
When I was looking at the “GoogleMap of Porec, Kroatia”:http://maps.google.com/maps?ll=45.236474,13.597866&spn=0.003510,0.006951&t=k&hl=en (where I was on holidays), I found out there was a stunning zoomlevel!
So I started to make screenshots of the GoogleMaps Satellite Photo’s. After sticking them all together with The Gimp, I created hotspots. When moving your mouse above a hotspot, a photo of that location will be loaded.
To view te result go to “My GoogleMap of Porec, Croatia”:http://fokdat.nl/~tijmen/photomap/

What to do against refererspam


In a normal month I have 100 unique visitors. This month (which just started) there where 2500 unique visitors and because of that, my server at home ran out of memory (old_box++). After a reboot, the server ran out of memory again. So I took a look at my access.log file from apache:

66.224.4.18 – - [02/Nov/2005:21:11:47 +0100] “GET /blog/ HTTP/1.0″ 200 182 “http://gay-teens.jp.md” “Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 Firebird/0.7″ “-”

Then I took a look at my webstats page (which I’m not going to link here) there where many links to the referers with those stupid urls! Damn.

So I wrote this “script to create iptables rules”:http://fokdat.nl/blockreferer.phps with the help from some nice people on IRC.

Right now there are like 500 rules and counting!!