.htaccess

December 09, 2004

With the help of this Spywareinfo article about referer spam, and Joe Maller's blacklist I have hopefully put an end to the increasing number of referer spam my site and my wife's site experience everyday.

The Spywareinfo article explains it all much better than I could. I would only add the suggestion to backup any .htaccess file you find before altering it, just in case. An earlier, less informed, attempt on my part to lock out the spammers actually resulted in my site being unavailable to anyone in any format. Oops.

This now brings to 3 (or 4, depending upon how you count) measures I'm taking to rid my sites of electronic graffiti. I'm using "deny" rules in my .htaccess file to ban IP addresses from accessing my site, I've added "rewrite" rules to block specific referers and specific types of referers, and I'm using BotWhack from Eric Goldberg to filter unwanted entries from my Referer list.

Even with all of these tools in place I know that I'll continue to get referer spam. My hope is to move my site out of the "low hanging fruit" category so that fewer opportunistic referer spam tools find me.

Author's profile picture

Mark H. Nichols

I am a husband, cellist, code prole, nerd, technologist, and all around good guy living and working in fly-over country. You should follow me on Twitter.