WordPress plugin
Comment Form CSRF Protection
Prevent Cross-Site Request Forgery attacks on your comments form.
- Active installs
- 400+
- Rating
- 5.0 / 5
- Version
- 1.4
- Last updated
- Jul 23, 2023
- Tested up to
- WordPress 6.3.15
- Requires
- WP 4.2 · PHP 7.1
Health check
Is Comment Form CSRF Protection 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 July 23, 2023. 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 6.3.15. It often still works, but check on staging first.
Few ratings so far
Only 2 ratings on WordPress.org, so the average is not yet a reliable signal.
Requires PHP 7.1 or newer
Check your hosting PHP version before installing. Modern PHP is faster and receives security fixes.
Rank tracker
Where Comment Form CSRF Protection 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.
| Keyword | Position | Change | Trend | Current #1 |
|---|---|---|---|---|
| comments | ||||
| csrf | ||||
| security | ||||
| spam | ||||
| comment form csrf |
Checked against the top 100 WordPress.org search results.
Overview
What Comment Form CSRF Protection does
WordPress has a 12-year-old unfixed security vulnerability that it does not properly validate incoming comments.
An attacker can trick both anonymous and logged-in users to post comments on a victim site without them realizing, while using their own credentials.
See this issue for more information: https://core.trac.wordpress.org/ticket/10931
This is a tiny (fewer than 40 effect lines of code) module that adds a secure token to the comment form and validate it before accepting any comment, thus making your comment forms secure as they should\’ve been for all these years!
It provides no UI – just install it, and you are all set!
This plugin adds a secret cryptographically-secure token to the comment form. This is a unique value and is computationally impractical to guess it.
Upon comment submission, the comment is rejected if the secret tokens are not present or computationally invalid.
Description from the author's listing. Read the full listing on WordPress.org
Screenshots
Comment Form CSRF Protection in action


FAQ
Comment Form CSRF Protection: questions and answers
What is Comment Form CSRF Protection?
Comment Form CSRF Protection is a WordPress plugin by Ayesh Karunaratne. Prevent Cross-Site Request Forgery attacks on your comments form.
Is Comment Form CSRF Protection free?
Comment Form CSRF Protection 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 Comment Form CSRF Protection?
WordPress.org reports 400+ active installations of Comment Form CSRF Protection. That figure counts sites running the WordPress.org version and is rounded down by WordPress.org.
Is Comment Form CSRF Protection still maintained?
Comment Form CSRF Protection was last updated on July 23, 2023. The current version is 1.4. Check the changelog on WordPress.org and test updates on a staging site before applying them to a live site.
What does Comment Form CSRF Protection require?
Comment Form CSRF Protection requires WordPress 4.2 or newer and PHP 7.1 or newer. It has been tested up to WordPress 6.3.15.
Can Codefreex set up or customize Comment Form CSRF Protection?
Yes. Codefreex installs, configures and customizes WordPress plugins including Comment Form CSRF Protection, 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 Comment Form CSRF Protection 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.