WordPress.org

Ready to get started?Download WordPress

Plugin Directory

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. This plugin will

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.*$`
`RewriteRule ^wp-signup.php - [F,L]`

Requires: 3.1 or higher
Compatible up to: 3.9.1
Last Updated: 2014-4-17
Downloads: 47,188

Ratings

4 stars
4.6 out of 5 stars

Support

0 of 3 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

100,1,1
100,2,2
100,1,1
80,5,4
80,5,4
100,2,2 100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
75,4,3
100,1,1
100,1,1
100,5,5
100,1,1
100,1,1
100,1,1
100,1,1