WordPress Zero Spam Plugin

Why should your users prove that they’re humans by filling out captchas? Let bots prove they’re not bots with the WordPress Zero Spam plugin.

WordPress Zero Spam blocks registration spam and spam in comments automatically without any additional config or setup. Just install, activate, and enjoy a spam-free site.

Zero Spam was initially built based on the work by David Walsh.

Major features in WordPress Zero Spam include:

  • No captcha, spam isn’t a users’ problem
  • No moderation queues, spam isn’t a administrators’ problem
  • Blocks 99.9% of spam registrations & comments
  • Supports caching plugins to help provide great performance
  • Blocks spammy IPs from ever seeing your site
  • Extend the plugin with action hooks
  • Theme & plugin integration for any form on your site
  • Optional logging, so you can see who’s trying to spam
  • Advanced settings for complete control

Supported Plugins

  • Contact Form 7
  • Gravity Form
  • Ninja Forms
  • BuddyPress

Languages: English

If you have suggestions for a new add-on, feel free to email me at me@benmarshall.me. Want regular updates? Follow me on Twitter or visit my blog.

Download Now (Version 2.0.1) Fork on GitHub WordPress Repo Report Issue


Changelog

2.0.1

2.0.0

1.6.0

  • Made minor modification on how spam comments are detected. Tested & verified working as expected.
  • Changed how Gravity Forms spam is detected. Needs to be tested & verified.

1.5.4

1.5.3

  • Fixed Gravity Form issues (https://github.com/bmarshall511/wordpress-zero-spam/issues/101)

1.5.2

  • Added IP location service (https://github.com/bmarshall511/wordpress-zero-spam/issues/84)
  • Improved pagination (https://github.com/bmarshall511/wordpress-zero-spam/issues/91)
  • Made date/times match site’s WP time, not servers (https://github.com/bmarshall511/wordpress-zero-spam/issues/89)
  • Removed the banner image to boost performance (https://github.com/bmarshall511/wordpress-zero-spam/issues/86)
  • Enhancements to the admin JS to boost performance
  • Works with Multisite as network activated or per sub site (https://github.com/bmarshall511/wordpress-zero-spam/issues/85)
  • Added BuddyPress support (https://github.com/bmarshall511/wordpress-zero-spam/issues/61)

1.5.1

  • Added missing code documentation and fixed typos (https://github.com/bmarshall511/wordpress-zero-spam/issues/64)
  • Fixed issue with settings not getting initially saved when the plugin is activated. (https://github.com/bmarshall511/wordpress-zero-spam/issues/69)
  • Added ability to auto block spam IPs (https://github.com/bmarshall511/wordpress-zero-spam/issues/71)
  • Added paging to spammer log and blocked IPs (https://github.com/bmarshall511/wordpress-zero-spam/issues/60)
  • Added additional stats and graphs (https://github.com/bmarshall511/wordpress-zero-spam/issues/75)
  • Fixed issue with comment moderators not being able to reply to comments (https://github.com/bmarshall511/wordpress-zero-spam/issues/74)
  • Fix issue with DB errors when first activating plugin (https://github.com/bmarshall511/wordpress-zero-spam/issues/80)

1.5.0

  • Switched to using a nonce to validate form submissions that support WordPress Zero Spam
  • Added Zero Spam plugin settings page for advanced control
  • Fix for for non-logged in users (https://github.com/bmarshall511/wordpress-zero-spam/pull/27, thanks @afragen)
  • Added blank index.php files to prevent directory browsing (https://github.com/bmarshall511/wordpress-zero-spam/pull/24, thanks @TangRufus)
  • Added uninstall.php (https://github.com/bmarshall511/wordpress-zero-spam/pull/23, thanks @TangRufus)
  • Addded support for GitHub Updater plugin (https://github.com/bmarshall511/wordpress-zero-spam/pull/21, thanks @afragen)
  • Added support for Contact Form 7 form submissions (https://github.com/bmarshall511/wordpress-zero-spam/pull/26, thanks @leewillis77)
  • Added ability to log spam detections
  • Fix for warnings cause by default settings not being set before actions run (https://github.com/bmarshall511/wordpress-zero-spam/pull/31, thanks @leewillis77)
  • Installed Compass (http://compass-style.org/)
  • Added support for Gravity Forms
  • Fixed potential issue with sites that use caching plugins
  • Fixed minor typos (thnaks @macbookandrew)

1.4.0

  • Added `zero_spam_found_spam_comment` and `zero_spam_found_spam_registration` action hooks (thanks @tangrufus)
  • Minor updates to the readme file

1.3.1 – 1.3.3

  • Minor fixes to WP SVN repo

1.3.0

  • Removed Grunt creation of the trunk directory
  • Added spam detection script to registration form

1.2.1

  • Fixed some typos in the readme.txt file

1.2.0

  • Removed testing for core function testing
  • Fix for adding comments from admin (thanks @afragen)
  • Removed unneeded WP svn trunk and tags folders from the git repo (thanks @afragen)

1.1.0

  • Updated theme documentation.
  • WordPress generator meta tag removed to help hide WordPress sites from spambots.

1.0.0

  • Initial release.

18 thoughts on “WordPress Zero Spam Plugin”

  1. A few ideas to help deter bots.

    1) When the plugin is activated make a random string and use it as the name of the field to check against. This would require the bot to change it’s attack per WP install to bypass the field.

    2) Require the REQUEST_METHOD to be POST

      1. I actually added these mods after I downloaded the plugin, but where I ran into the snag was in getting the random field name back into the JavaScript.

        I had not seen the code before I made the suggestions. The biggest looming issue is how to get the random field name into the form on submit w/o broadcasting its name back in the code before it’s triggered?

        I’ve thought of a few ways to eloquently get the random field where it needs to be, but once it’s in the source code, all a bot has to do is search for the known file name extract the field name, and then all we’ve done is wasted our time.

        I keep thinking the resolution to this is an AJAX request on the form fields, but then I start thinking about too many things that could go wrong w/ that… and then I get indecisive.

        1. I’m working on a similar plugin to Ben’s for Gravity Forms specifically and have been pondering this same issue. The current prototype uses a defined field name, but the value is being generated randomly and included in the form at submission. Even though the value is random, it’s displayed in the source code as JavaScript. I ended up coming to what I suspect is the same approach you’re imagining – trigger an ajax call on page load that retrieves the randomly generated code (stored in a short-term, form-specific, transient) and then adds it to the form. This would keep the random value out of the source code. I suppose it could potentially fall apart in the case of a JS error or interruption of the ajax call – but I can’t think of a situation that would cause this to approach to fail that wouldn’t also cause David and Ben’s approach to also fail.

  2. I’ve installed on my site, on which Akismet was marking about 40 comments/day as spam. Since installation, either no one has tried to comment or all that spam is just being blocked.

    1. A simple test would be to make a comment while you’re not logged in, and confirm it’s working. Then find how to disable JavaScript in your browser of choice and try to comment again. With JavaScript disabled you should see the failure message.

  3. Pingback: Stop WordPress Comment Spam Like a Boss!
  4. I noticed that it blocks comments I make myself from the WordPress admin screens, both the post-edit screen and the comments-reply panels. When I temporarily disabled the plugin, I was able to comment.

  5. Hi Ben!

    Very innovative plugin concept… love the original post behind it and all the commentary following. šŸ™‚

    Is there a way to make this work for the WordPress login page as well?

    User HATE traditional captchas, even simple ones… but could this be reliable enough as far as compatibility with any browser to work for a login page?

    Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *