WordPress.org

Ready to get started?Download WordPress

Forums

Prevent Comment Spam (10 posts)

  1. Laughinglizard
    Member
    Posted 9 years ago #

    I call this the "Three Strikes" Spam Prevention Plugin.
    This plugin is designed to prevent comment spam from even hitting your system and leaving you with a flood of approval requests and a bunch of comments to be deleted. While dealing with some moderated comments on my system, I started to realize that most of the REAL Spam could easily be categorized as delete fodder by a "fuzzy" points system. In toying with the idea and testing the various scenarios, I have put together a plugin that keeps tracks of the "strikes" of a comment and then prevents the comment from ever getting into your database and making more work for you.
    Here are the possible strikes (so far in the beta):

    • Every SpamWord (default WordPress) match within the comment is a single strike
    • A greater than allowed number of links inside a comment is a strike
    • A match between the commenters' IP and a SpamWord IP is a heavily weighted strike
    • An empty referer field for the posted comment request is a strike

    The strike system can be configured to be aggressive or moderate by a simple value change. I have it set at 3 and it seems to work well at that level. Higher numbers = more moderate spam checking (less spam gets deleted). Various users might have to play with that value to see what works for them.
    Once a commenter/comment is determined to be "Struck Out", they are redirected to (by default) the FBI site. This redirect site can be configured in the plugin as well.
    The plugin can be downloaded here. Please post suggestions and bugs.
    Installation is very simple. Just copy the plugin to your wp-content/plugins directory and activate through your admin interface. I suggest the use of a more moderate spam checking (SpamThreshold greater than 3) and the use of Kitten's Spam Words for the first few days/weeks till you have some spam words filled up. The more robust your Spam words, the more effective this plugin.

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Looks good !
    Do the FBI mind ? :)

  3. Laughinglizard
    Member
    Posted 9 years ago #

    Heh! I am not sure, let me know if you get hunted down for referring spammers to them.

  4. Root
    Member
    Posted 9 years ago #

    Is it editable? UK users might want to redirect their spam somewhere more local ahem.

  5. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Yes...... and I was wondering where to send mine too :)

  6. Laughinglizard
    Member
    Posted 9 years ago #

    I have no idea on where to send them! :P
    My fault ... any suggestions?
    How about http://www.mi5.gov.uk/ ?

  7. TechGnome
    Moderator
    Posted 9 years ago #

    Send them to a pron site! Does it really matter where they get rerouted to? Most of the time, it's a bot that's doing the posting anyways, so no amount of re-routing will help.
    TG

  8. Mark (podz)
    Support Maven
    Posted 9 years ago #

  9. Mark (podz)
    Support Maven
    Posted 9 years ago #

    LL has just posted some initial stats on this over at wtc:
    http://weblogtoolscollection.com/archives/2004/09/30/comment-spam-statistics/

  10. Anonymous
    Unregistered
    Posted 9 years ago #

    I send mine to a Monty Python fansite with the Spam Song lyrics ;)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.