Blocking referrer (aka referer) SPAM using mod_rewrite is nothing original. But for what it’s worth, here is my conf. It’s a symlink to my current copy, so it will always be up-to-date.
If you’re running Debian, just put it in /etc/apache2/conf.d and run
apache2ctl restart
A nice updated list of spam referrers can be found at
http://www.glop.org/referrers/faking-referrers.txt
You can test it by clicking on http://www.osterman.com/test-referrer-spam
Related posts: