Block Top Spammers

Block Top Spammers is a WordPress Plugin.

Block Top Spammers displays a list of your top spammers’ IP addresses, based on all comments in your database that are marked as spam. It also generates a blacklist for your .htaccess file to block those spammers from your website entirely, thus taking load off the server. You will need another plugin (like Akismet) to identify the spam.

Top Spammers requires PHP 5

Top Spammers is hosted on wordpress.org:

As with any plugin hosted on wordpress.org you can also get the plugin using subversion:

# the development version
svn co http://plugins.svn.wordpress.org/top-spammers/trunk

# the latest stable version as of 2010-03-23
svn co http://plugins.svn.wordpress.org/top-spammers/tags/0.5
  1. Hello!
    Will you code a PHP4 version?
    When I try to activate your plugin, it shows

    Parse error: parse error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /var/www/kvartoplat/data/www/kvartoplat.ru/wp-content/plugins/top-spammers/top-spammers-wp.php on line 41

    So, how about PHP4 version?

  2. Hi Mike,

    the short answer to your question is:
    No!

    The longer answer is:
    http://www.gophp5.org

    And another answer to your question is:
    This plugin in its current release (0.4) is fairly simple and you should probably get it to work with PHP4 by just removing the word “static” from lines 41, 51, and 57 in top-spammers-wp.php. I have no means to verify that myself, so your feedback would be appreciated.

  3. This is really a great plugin. I just wanted to see if at any point you will be making this automatically insert the code into the .htaccess. (I saw the “for now” note in the plugin)

    Keep up the great work, this is an instant favorite. I also voted it up on WordPress.

  4. Thanks, Jake.

    Just today I changed the code of my local dev version to block just the php file used for posting comments, not the entire blog. That way somebody whose computer has been hijacked by a botnet and ended up on the blacklist can still read the blog. Log analysis has shown that almost all bots access only that one file anyway so this doesn’t even mean any extra traffic. — This is the state I wanted to have this in before I insert anything into .htaccess by default. That feature is really up next.

    Oh, and thanks for voting by the way.

  5. I have installed on WP 2.9.2 but when I click on “Delete spam and block ip” nothing happens. My .htaccess has been modified by your plugin, but it doesn’t insert the deny from ip rule. I have akismet installed spam content with unique ip.
    What can I do?

  6. Gale: it sounds like you didn’t select any of the checkboxes.

  7. I would like to see the Error document a “spammer” I’ve blocked sees, as I added a link to our Contact Form to the .htaccess and want to be sure it is working correctly. How can I access that page?

    Also, in the error message in .htaccess you refer “spammers” to http://ten-fingers-and-a-brain.com/top-spammers.html for more information, but the page is under construction????

  8. This plugin is great! Thanks Martin!

    I too would like to see what the spammer sees when they are blocked from the site.

Reply

Your email address will not be published.