WordPress Blacklist Comment SPAM Filteration System

January 25th, 2004
WordPress Hack

I wrote a little script to fight comment SPAM much along the lines of Jay Allen’s MTBlacklist filter (but for WordPress). This really simple script is compatible with all versions of WordPress and uses a powerful master blacklist from Reflective Reality. I would really like to get some people to try and install it and see how well it works. So if you are using WordPress and have been receiving some SPAM in your comments, please help me in testing this script. WordPress 1.0+ will even allow you to view the SPAM comments without them ever being displayed on your blog (using moderation) which would mean that if you do receive SPAM and the filter catches it, you will know that the script is working. Here is a link to WPBlacklist.




  1. Robert (1 comments.) says:


    I’m using WP 1.2 and installed this plugin – then used the line

    array(__(‘Blacklist’), 3, ‘modBlacklist.php’),

    because it wouldn’t ‘install’ through the plugin page …

    my question = is the ” 3, ” the correct way to do it?” or have I just goofed up … it seems to work … but I’m just wondering :o)

    if i try to ‘add a domain to the list’ it gives me a download link of the blacklist db contents to edit and then i can re-upload the new list … is that the correct way it should work?

    Thanks! And thanks for the plugin!


  2. Winston Smith 6079 (4 comments.) says:

    I’ve never wanted to upgrade my heavily hacked blog above 1.0.1 (I can’t because I host on Windows). Hopefully now I can finally open up comments again.

    please work, please work, please work

  3. Winston Smith 6079 (4 comments.) says:

    Okay, I just get a bunch of lines with “Error importing domain:” over and over… is this a problem mysql or wha?

  4. Winston Smith 6079 (4 comments.) says:

    Duh, it would help if I *saved* the file before I tried to import it…

    Let’s see…

    Sweet, step 3 complete :)

  5. Winston Smith 6079 (4 comments.) says:

    I must say the hack is great, I just can’t import a new blacklist (just doesn’t work…) and I can’t add domains except by hand. No problem because this has at least made that possible.

  6. Rinku says:

    I am doing a project on filtering comment spams. For this i require few samples of comment spam.Can anybody forward them to me.
    With Regards,

  7. Mike says:

    Well, if you have the ability to install modsecurity on your apache based web server, I maintain a very large and actively maintained blacklist of known spam domains and other rules to catch spammers, which integrates directly with the webserver to protect all your sites. You can check it out here: This will work with any webblog, forum, guestbook, whatever. Plus, you could take the blacklist and import it into the wordpress blacklist if can not use modsecurity.

    In my personal experience, modsecurity tends to scale better with the large blacklists as it will use the PCRE engine available on most platforms, which is lightning fast even for blacklists with tens of thousands of entries.


  1. […] a glance… The upload.php mod that creates thumbnails for images Template Manager and WP-Blacklist It’s turning into […]

  2. اسپم مشکل همیشگی !

    HiAn old Problem : SPAMs :(They are also in our Mailbox , Chatroom , … and now in our Weblog Comments ! :(But also there is a soloution 4 that :DU can easily install plugins to get ride of SPAMs as comments ;)try these :
    1. Kitten Spam Word 2. Wor…

  3. Welcome Back Comments!

    Comments are now open on all blog posts thanks to Mark at Weblogs Tools Collection and his “WordPress Blacklist Comment SPAM Filteration System.”

    Sweet, let the hateful responses begin!

  4. […] per line and save. There are lots of bloggers who publish their blacklists online: Simple Thoughts, Weblog Tools Collection, there are others. You could merge them into your own […]

Obviously Powered by WordPress. © 2003-2013

page counter