Home > Apache, MySQL > Stop the Most Annoying Spammers

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,deny

deny from 192.168.100.0/24
deny from 192.168.0.0/16

allow 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.

Bookmark and Share


Related Posts:

Filed Under: Apache, MySQL

2 Comments to “Stop the Most Annoying Spammers”

  1. Jesper Wallin Says:

    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. :-)

  2. KP Says:

    Many thanks for the heads up, Jesper! No wonder this is a great tip!

Leave a Comment









*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word




Categories

Archives

Links

  • Dedicated Servers
  • Meta