Anti-spam ProAnti-spamdonateview source

WordPress Anti-spam plugin

Why humans should prove that they are humans by filling captchas? Lets bots prove that they are not bots with adding javascript to their user-agents!

Anti-spam plugin blocks spam in comments automatically, invisibly for users and for admins.

  • no captcha, because spam is not users' problem
  • no moderation queues, because spam is not administrators' problem
  • no options, because it is great to forget about spam completely

Plugin is easy to use: just install it and it just works.

How does Anti-spam plugin work ?

The blocking algorithm is based on 2 methods: 'invisible js-captcha' and 'invisible input trap'.
The 'invisible js-captcha' method is based on fact that bots does not have javascript on their user-agents.
The 'invisible input trap' method is based on fact that almost all the bots will fill inputs with name 'email' or 'url'.

How does Anti-spam plugin work in details?

Two extra hidden fields are added to comments form. First field is the question about the current year. Second field should be empty.
If the user visits site, than first field is answered automatically with javascript, second field left blank and both fields are hidden by javascript and css and invisible for the user.
If the spammer tries to submit comment form, he will make a mistake with answer on first field or tries to submit an empty field and spam comment will be automatically rejected.

How to test what spam comments are rejected?

You may enable sending all rejected spam comments to admin email.
You should edit "anti-spam.php" file and find "$antispam_send_spam_comment_to_admin" and make it "true".

What is the percentage of spam blocked?

Anti-spam plugin blocks about 99.9% of automatic spam messages (sent by spam-bots via post requests).
But Anti-spam plugin will pass the messages which were submitted by spammers manually via browser. But such messages happens very rarely.

Not enough information about the plugin?

You may check out the source code of the plugin.
The plugin has about 100 lines of code and pretty easy to read. I was trying my best to make plugin's code clean.
Plugin is small but it makes all the dirty work against spam pretty good. You may give it a try.

How to reduce the amount of spam?

Do not order spam-newsletters because people hate spam and people will not like products received from spam. Do not order products from spam. If spam will be less effective than spammers will stop sending it.


What I know now about spam and spam-bots?

  • All spam-bots does not have javascript
  • Spam-bots submit all inputs from forms so forms are parsed before being submitted
  • If input have 'email' in its name than many spam-bots tries to submit email in it automatically
  • All spam-bots does not have Cookies (Cookie array is empty)
  • Spam is very complicated now, pretty "smart" and fully automated

87 comments on “Anti-spam

  1. The plugin seems to be working well, but all entered comments Are Converted To Title Case Like This. I'm not sure why, given that I know they aren't being entered that way (tested with my own comments).

    Any idea how to fix this?


    • webvitaly Post author

      This problem is not related to Anti-spam plugin.
      Probably it is caused by some other plugin you installed.

      • My blog is brand new and I had only you, a 'floating icons' one, and a 'sidebar widget' one. It was the sidebar thing. Removed and things look right now. Thanks for the quick reply!

  2. Pingback: Best WordPress Comment Spam Plugin -

  3. I used to battle with 50 spammy comments every day. Since i installed your plugin spam comments disappeared.
    Great tool. Really works



  4. Thanks for sharing this plugins with us. I am really helpful to you. Next time I will try to donate some amount for you.

  5. Pingback: How to stop spam on your self-hosted blog or website

  6. Pingback: Chris' Blog » Blog Archive » WordPress Spam

  7. I used to get at least 10 spam comments a day, every day.. despite have two "simple" anti-spam measures (an "are you human check box and a mathmatical challenge question). I hate these stupid questions because the commenters have to deal with them! Anyway, I installed Anti-spam, and IMMEDIATELY saw improvement. Not a single spam comment so far, and I was able to remove all my other anti-spam plugins. Great tool!

Submit comment

Allowed HTML tags: <a href="">google</a> <strong>bold</strong> <em>emphasized</em> <code>code</code> <blockquote>

Copy this code

and paste it here *