Sets a cookie on a random URL that is then checked when a comment is posted. If the cookie is missing the comment is marked as spam.
As of April 2026, Cookies for Comments is a WordPress spam plugin with 20K+ active installations and a 4.9/5 rating from 18 reviews. It has been downloaded 107K+ times in total. Requires WordPress 3.1+ and PHP false+. Available on WordPress.org since 2008. Last updated 6 years ago — may have compatibility concerns. Downloads are down 8% this week. Top alternative: Akismet Anti-spam: Spam Protection.
This plugin adds a stylesheet or image to your blog’s html source code. When a browser loads that stylesheet or image a cookie is dropped. If that user then leaves a comment the cookie is checked. If it doesn’t exist the comment is marked as spam.
The plugin can also check how long it took a user to enter a comment. If it’s too fast it’s probably a spam bot. How fast can a legitimate user enter their name, email, web address and enter a well thought out comment?
For the adventurous, add these lines to your .htaccess and it will block spam attempts before they ever get to WordPress. Replace the Xs with the cookie that was set in your browser after viewing your blog. You can also find the cookie value by examining the page source code and looking for “css.php?k…
(REVIEW UPDATED August 2021)
Based on my long experience, I think this the simplest, fastest e most effective plugin to avoid spam in WordPress comments.
I’m using this plugin on several sites, since years, and it works like a charm.
Also on a big website with thousands of daily views (using .htaccess)
P.s. It works very well with all versions of WP 5.x
If you don’t use any other spam filter plugins, then you can rely on this to stop spam comments for sure!
There used to be 2 types of anti-spam plugins. The first one will block all comments, and also block shopping carts if you run a site where people need to pay. The second doesn’t work. There is now a 3rd category, and this one not only works, but also will not block shopping carts. This anti-spam works well with Clickbank and WP eMember possibly other carts as well.
Thank you so much! The last update stopped the anti-spam from Tips and Tricks HQ with their WP Security plugin, and I was inundated with 100s of spam comments per day. Now, this solution works, and everything is sent to spam, without messing with my shopping cart.
Thank you so much.
mmoexploiters.com
I originally found out about this plugin on Justin Tadlock’s blog. He was all for it so I figured it has to be a good one. I currently have it installed on all of my sites along with the recommended .htaccess rule, and now I do not ever see any spam! Awesome job guys! Thanks for a great plugin!
Love the premise of this plugin, and the results are respectable & accurate. Can’t ask for more than that! If a project I’m working on supports comments, this is my go-to plugin to reduce spam.
| WordPress | 3.1+ requiredTested up to 5.2.24 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.