Cookies for Comments WordPress Plugin | Codefreex Skip to content
Cookies for Comments icon

WordPress plugin

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)10K+ active installs4.9 out of 5
Active installs
10K+
Rating
4.9 / 5
Version
0.5.5
Last updated
Jun 4, 2019
Tested up to
WordPress 5.2.30
Requires
WP 3.1

Health check

Is Cookies for Comments safe to rely on?

Our reading of the public WordPress.org data: maintenance, compatibility, ratings and support.

No update in over a year

Last updated on June 4, 2019. It may not be compatible with current WordPress or PHP, and unfixed issues are a security risk.

Not yet tested with the latest WordPress

Tested up to WordPress 5.2.30. It often still works, but check on staging first.

Highly rated by users

Rated 4.9 out of 5 from 18 ratings on WordPress.org.

Rank tracker

Where Cookies for Comments ranks in WordPress.org search

Its position in WordPress.org plugin search for its tags and name, refreshed weekly so you can see how its visibility changes.

WordPress.org search positions for Cookies for Comments
KeywordPositionChangeTrendCurrent #1
comments
cookies
spam
cookies for comments

Checked against the top 100 WordPress.org search results.

Overview

What Cookies for Comments does

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=XXXXXXXXXXXXXXXXXXX”. Make sure the lines go above the standard WordPress rules.

RewriteCond %{HTTP_COOKIE} !^.*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.*$

RewriteRule ^wp-comments-post.php – [F,L]

If you use WordPress MU, replace wp-comments-post.php above with wp-signup.php to block spam signups.

RewriteCond %{HTTP_COOKIE} !^.*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.*$

Description from the author's listing. Read the full listing on WordPress.org

FAQ

Cookies for Comments: questions and answers

What is Cookies for Comments?

Cookies for Comments is a WordPress plugin by Donncha O Caoimh (a11n). 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.

Is Cookies for Comments free?

Cookies for Comments is listed in the WordPress.org plugin directory, so the version there is free to download and use. Some authors also sell paid add-ons or a premium edition with more features and support.

How many websites use Cookies for Comments?

WordPress.org reports 10K+ active installations of Cookies for Comments. That figure counts sites running the WordPress.org version and is rounded down by WordPress.org.

Is Cookies for Comments still maintained?

Cookies for Comments was last updated on June 4, 2019. The current version is 0.5.5. Check the changelog on WordPress.org and test updates on a staging site before applying them to a live site.

What does Cookies for Comments require?

Cookies for Comments requires WordPress 3.1 or newer. It has been tested up to WordPress 5.2.30.

Can Codefreex set up or customize Cookies for Comments?

Yes. Codefreex installs, configures and customizes WordPress plugins including Cookies for Comments, fixes conflicts and performance problems, and builds custom features when a plugin does not do exactly what you need. Send your site URL for a free review.

Free expert review

Need Cookies for Comments set up, customized or fixed?

Tell us about your site and what you need this plugin to do. A senior WordPress developer replies within one business day with a plan and a quote.

Built this plugin yourself? We help WordPress product teams with development, support load and growth. Talk to us