Simple .htaccess Rules To Block Spammers
By Angsuman Chakraborty, Gaea News NetworkMonday, July 24, 2006
You can easily and effectively use your .htaccess file to easily and effectively block comment and referrer spammers targeting your blog(s). If you are using WordPress you can also use my Referrer Bouncer plugin, which is much simpler, to block referrer spammers. For the rest here is a sample .htaccess file you can start with.
# Spam Protection
SetEnvIfNoCase Via pinappleproxy spammer=yes
SetEnvIfNoCase X-AAAAAAAAAAAA 1 spammer=yes
SetEnvIfNoCase Referer tramadol spammer=yes
SetEnvIfNoCase Referer viagra spammer=yes
SetEnvIfNoCase Referer levitra spammer=yes
SetEnvIfNoCase Referer adipex spammer=yes
SetEnvIfNoCase Referer virex spammer=yes
SetEnvIfNoCase Referer antispysoft2005.com spammer=yes
SetEnvIfNoCase Referer mydivx.info spammer=yes
SetEnvIfNoCase Referer my-pills.be spammer=yes
SetEnvIfNoCase Referer cameralover.net spammer=yes
SetEnvIfNoCase Referer credit-dreams.com spammer=yes
SetEnvIfNoCase Referer the-discount-store.com spammer=yes
SetEnvIfNoCase Referer bayfronthomes.net spammer=yes
SetEnvIfNoCase Referer casino spammer=yes
SetEnvIfNoCase Referer poker spammer=yes
SetEnvIfNoCase Referer hackerssupply.com spammer=yes
SetEnvIfNoCase Referer hydrocodone spammer=yes
SetEnvIfNoCase Referer cafexml.com spammer=yes
SetEnvIfNoCase Referer yelucie.com spammer=yes
SetEnvIfNoCase Referer crescentarian.net spammer=yes
SetEnvIfNoCase Referer andrewsaluk.com spammer=yes
SetEnvIfNoCase Referer tigerspice spammer=yes
SetEnvIfNoCase Referer doobu.com spammer=yes
SetEnvIfNoCase Referer camfun24 spammer=yes
SetEnvIfNoCase Referer latinonakedgirl spammer=yes
SetEnvIfNoCase Referer ronnieazza.com spammer=yes
SetEnvIfNoCase Referer highprofitclub spammer=yes
SetEnvIfNoCase Referer dvdsqueeze.com spammer=yes
SetEnvIfNoCase Referer sexsearchcom.com spammer=yes
SetEnvIfNoCase Referer 6q.org spammer=yes
SetEnvIfNoCase Referer d4f.de spammer=yes
SetEnvIfNoCase Referer adultactioncam spammer=yes
SetEnvIfNoCase Referer seventwentyfour.com spammer=yes
SetEnvIfNoCase Referer genaholincorporated.com spammer=yes
SetEnvIfNoCase Referer firsthorizonmtg.com spammer=yes
SetEnvIfNoCase Referer personalsites.info spammer=yes
SetEnvIfNoCase Referer bukakke-bukake-bukkake-bukkakke.com spammer=yes
SetEnvIfNoCase Referer camgirlslive.com spammer=yes
SetEnvIfNoCase Referer dvd-copy.com spammer=yes
SetEnvIfNoCase Referer shaffelrecords.com spammer=yes
SetEnvIfNoCase Referer mcr8.com spammer=yes
SetEnvIfNoCase Referer dating.blogs.com spammer=yes
SetEnvIfNoCase Referer online-casino-pops spammer=yes
SetEnvIfNoCase Referer 8thstreetlatinas spammer=yes
SetEnvIfNoCase Referer boysfirsttime.com spammer=yes
SetEnvIfNoCase Referer gofordgo.com spammer=yes
SetEnvIfNoCase Referer chile-online.com spammer=yes
SetEnvIfNoCase Referer buy-hgh-human-growth-hormone.net spammer=yes
deny from env=spammer
Note: I use this file within my Apache server configuration file (httpd.conf) which may not be available to everyone. Keeping it in .htaccess is mostly a safe bet (that it will be available).
Customize this to your needs.
Note: I do not claim originality for this file. I found it somewhere (cannot find the link) on the net and then customized it to my needs.
Tags: Chile, Claim
January 29, 2010: 12:59 am
Thanks for sharing this. i am using wordpress blog. Referrer Bouncer plugin is compatible to which version ? |
Rakshit