I spy a spy.


Wondering what this is all about? It happens to be a great way to get stats on your website. The idea comes from the article "Spying A Spy" that was printed in Blacklisted!411 (Volume 8 Issue 1 - Winter 2005-2006). Basically, it's just a PHP file that finds a bunch of stuff about the people who visit your site and exports it to a text file.

Here's an example output:

# index.htm # Thu, April 26th, 2007, 10:22PM # 65.54.188.92 # livebot-65-54-188-92.search.live.com # msnbot/1.0 (+http://search.msn.com/msnbot.htm) # #

# contact.htm # Fri, April 27th, 2007, 06:02AM # 74.6.73.51 # lj611260.inktomisearch.com # Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp) # http://example.com/ #

The section between the last two hashes tells you where the visitor came from. In the first case, the file was accessed directly, so there's no referer. If you can't get the mag, get the source code (ZIP format). Update: The ZIP file isn't there anymore. Try to find the magazine, instead. Or if you ask nicely, I can hook you up.

~Jonathan

Back to the article · Home