PluginSift
PluginsThemesCompare
Directory
  • Plugins
  • Themes
  • Compare Plugins
Plugin Comparisons
  • SEO
  • Security
  • Ecommerce
  • Page Builders
  • Caching
  • Backup
  • Forms
  • Analytics
Resources
  • About
  • Contact
  • llms.txt

© 2026 PluginSift. Data sourced from WordPress.org. · [email protected]

  1. Home
  2. Plugins
  3. Spam
  4. Cookies for Comments
Cookies for Comments icon

Cookies for Comments

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.

By Donncha O Caoimh (a11n)·Spam·Free
4.9(18 reviews)
·20K+ active installs·Updated 6 years ago
DownloadVisit HomepageCompare

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.

4.9/518 reviews
20K+active installs
107K+total downloads
18 yearssince 2008

Overview

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…

Read full description on WordPress.org

Ratings & Reviews

4.918 reviews
5 ★
17
4 ★
1
3 ★
0
2 ★
0
1 ★
0

Recent Reviews

Great plugin! The most effective to avoid spam since years
by Annonnimmo·5 years ago

(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

  • This topic was modified 5 years, 4 months ago by Jan Dembowski.
  • This topic was modified 4 years, 7 months ago by Annonnimmo.
  • This topic was modified 4 years, 7 months ago by Annonnimmo. Reason: updated for date
Must have, if you don’t use any other spam filters!
by Pothi Kalimuthu·9 years ago

If you don’t use any other spam filter plugins, then you can rely on this to stop spam comments for sure!

Awesome!
by Spitt·10 years ago

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

Simply Works!
by Jason G.·11 years ago

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!

Simple solutions are my favorite
by Jon Christopher·11 years ago

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.

Download Trends

Today: 9Yesterday: 5This week: 46Period total: 2K

Compatibility

WordPress3.1+ requiredTested up to 5.2.24
PHPfalse+ required

Version Adoption

v0.5
100.0%

Top Alternatives to Cookies for Comments

Akismet Anti-spam: Spam Protection icon
Akismet Anti-spam: Spam Protection
4.76.0M+ installsUpdated 4 months ago
ViewCompare
Sucuri Security – Auditing, Malware Scanner and Security Hardening icon
Sucuri Security – Auditing, Malware…
4.2600K+ installsUpdated 4 weeks ago
ViewCompare
WP Mail Logging icon
WP Mail Logging
4.7300K+ installsUpdated 1 month ago
ViewCompare
Spam protection, Honeypot, Anti-Spam by CleanTalk icon
Spam protection, Honeypot, Anti-Spam by…
4.8200K+ installsUpdated 2 days ago
ViewCompare
ReCaptcha v2 for Contact Form 7 icon
ReCaptcha v2 for Contact Form 7
5200K+ installsUpdated 11 months ago
ViewCompare
View all spam plugins →

Frequently Asked Questions

Changelog

0.5.5

  • Sanitize the cookie key before setting it. Props Matt Cutts and @planetzuda
View full changelog on WordPress.org

Contributors

Donncha O Caoimh (a11n)Donncha O Caoimh (a11n)AutomatticAutomattic
Plugin Info
Version
0.5.5
Last Updated
Jun 4, 2019
WP Requires
3.1+
Tested Up To
5.2.24
PHP Requires
false+
Active Installs
20K+
Downloads
107K+
Added
Mar 6, 2008
Business
Free

Tags

spamcookiescomments

Developer

D
Donncha O Caoimh (a11n)
12 plugins0.0M+ total installs
View all plugins →

Quick Compare

Cookies for Comments vs Akismet Anti-spam: Spam Protection→Cookies for Comments vs Sucuri Security – Auditing, Malware…→Cookies for Comments vs WP Mail Logging→

Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.