Stop the Most Annoying Spammers
August 3, 2009 Posted by KP
Some spammers are very stupid and persistent, they don’t care about the results, and keep spamming for months and even years. They combine manual and automate ways to post spams, the only way to stop them is blocking their IPs.
Here is what I do to stop these stupid spammers, put the following lines into .htaccess file.
<Limit POST>
order allow,denydeny from 192.168.100.0/24
deny from 192.168.0.0/16allow from all
</Limit>
After editing the file several times, such as extending C block to B block, or adding some subnets, the spammers finally disappeared completely.
Related Posts:
August 13th, 2009 at 11:16 am
A little heads up though, if you’re going for performance, it’s recommended to add those lines in your httpd.conf instead. This saves the webserver from having to scan your .htaccess file for _each_ request.
August 13th, 2009 at 2:45 pm
Many thanks for the heads up, Jesper! No wonder this is a great tip!