Comment Form CSRF Protection icon
Security

Comment Form CSRF Protection

Prevent Cross-Site Request Forgery attacks on your comments form.

Developer Ayesh Karunaratne
16 Needs attentionmaintenance
  • 9 yearson WordPress.org
  • 7plugins
  • 5,210+installs in total
  • 4.0★avg. rating (27)
  • 0%of plugins updated this year
3/14 badges Profile →

Not recommended for new sites

Better alternatives to Comment Form CSRF Protection

  • Problem: Not maintained Last updated 3 years ago (version 1.4).
  • Problem: Not tested with recent WordPress Tested up to WordPress 6.3; the current release is 7.1. Needs PHP 7.1+.
  • Note: Few reviews so far 2 ratings on WordPress.org.
  • Note: Small user base Active on 400+ sites.

For a new site, or if you are planning a rebuild, choose a plugin that is still maintained. Unmaintained plugins stop getting security fixes and tend to break as WordPress and PHP move on.

Akismet Anti-spam: Spam Protection icon

Best match

Akismet Anti-spam: Spam Protection

Updated 3 months ago, tested with WordPress 7.1, rated 4.7/5 by 1,186 users, used on 5+ million sites.

Setup guide →
Compare Comment Form CSRF Protectionthis plugin Akismet Anti-spam: Spam Protection Antispam Bee Anti-Spam, Spam FireWall by CleanTalk
Last updated 3 years ago3 months ago3 months ago1 week ago
Tested up to WordPress 6.3WordPress 7.1WordPress 7.1WordPress 7.1
Active installs 400+5+ million700,000+200,000+
Rating 5.0 / 5 (2)4.7 / 5 (1,186)4.8 / 5 (227)4.8 / 5 (3,230)
PHP code size 2 KB in 1 PHP file–––
Hooks for developers –431534

Switching from Comment Form CSRF Protection?

  1. Try the replacement on a staging copy of your site first.
  2. Note your current settings, shortcodes and widgets. They won't carry over automatically.
  3. Activate the new plugin, recreate the setup, then deactivate and delete the old one.

Need your settings or data moved over? We can migrate it for you.

Find other outdated plugins on your site with the free plugin checker →

Alternatives are matched on features and ranked by maintenance, WordPress compatibility, ratings and adoption, using WordPress.org data.

Overview

Comment Form CSRF Protection describes itself as: “Prevent Cross-Site Request Forgery attacks on your comments form.”

It is active on 400+ WordPress sites and rated 5.0 out of 5 by 2 users on WordPress.org.

We haven't published a hands-on review of Comment Form CSRF Protection yet. Want one, or need help with it? Send us a request.

How to install Comment Form CSRF Protection

  1. Open the plugin installer. In your WordPress dashboard go to Plugins → Add New Plugin.
  2. Search for it. Type “Comment Form CSRF Protection” and pick the one by Ayesh Karunaratne.
  3. Install and activate. Click Install Now, then Activate.
Install with a zip file or WP-CLI

Download the zip from the WordPress.org plugin page, then go to Plugins → Add New Plugin → Upload Plugin, choose the file and click Install Now. Or from the command line:

wp plugin install comment-form-csrf-protection --activate

Requirements: WordPress 4.2+ · PHP 7.1+ · tested up to WordPress 6.3.15

Hooks & customisation

The hooks reference for this plugin is being generated and will appear here shortly.

Comment Form CSRF Protection: frequently asked questions

Is Comment Form CSRF Protection free?

Yes. Comment Form CSRF Protection is free to download from the official WordPress.org plugin directory and is licensed under the GPL, so you can use it on as many sites as you like. Some developers sell a separate Pro version or paid add-ons; check the developer's website for details.

Is Comment Form CSRF Protection safe to use?

Comment Form CSRF Protection has not been updated for 3 years. Plugins without updates stop receiving security fixes, so we recommend a maintained alternative for new sites. As with any plugin, keep it updated and only install it from WordPress.org or the developer.

Does Comment Form CSRF Protection work with WordPress 7.1?

It isn't confirmed. Comment Form CSRF Protection was last tested with WordPress 6.3, 8 releases behind the current 7.1, so test it on a staging site before relying on it. It requires WordPress 4.2 or later and PHP 7.1 or later.

How many websites use Comment Form CSRF Protection?

Comment Form CSRF Protection is active on 400+ WordPress sites, according to WordPress.org. It is currently at version 1.4, last updated on July 23, 2023.

What are the best alternatives to Comment Form CSRF Protection?

Plugins that do a similar job and are actively maintained include Akismet Anti-spam: Spam Protection (5+ million installs), Antispam Bee (700,000+ installs), Anti-Spam, Spam FireWall by CleanTalk (200,000+ installs). See the side-by-side comparison.

Can I customise Comment Form CSRF Protection without editing its code?

Comment Form CSRF Protection doesn't expose its own hooks, so changing its behaviour usually means a small companion plugin. Tell us what you need and we'll suggest the safest way.

Done for you

Let us deal with Comment Form CSRF Protection for you

Move to a maintained plugin without losing your settings, or keep this one and have it brought up to date.

Update an abandoned plugin

from $249

Keep the plugin your site depends on, made safe for current WordPress and PHP.

  • Compatibility with current WordPress and PHP
  • Security review and fixes
  • Deprecated code replaced
  • You keep a maintained copy

Typical turnaround: 5–10 business days

Choose this

Not sure which fits? Describe what you need and we’ll suggest the simplest option.

Need Comment Form CSRF Protection customised?

Tell us what you want changed, added or fixed and we'll reply with an estimate.

WP EXPERTS is independent and not affiliated with Ayesh Karunaratne. Plugin names and logos belong to their owners. Version, rating and install figures from WordPress.org, checked Nov 19, 2026.

More plugins by Ayesh Karunaratne

All 7 →
Not updated in 5+ years

Adds support for embedding Facebook and Instagram posts in Block Editor (Gutenberg) and Classic Editor.

3,000+ installs Updated 5 years ago
Not updated in 2+ years

Makes WordPress use PHP's native password_hash() functions for portable, stronger, and time-attack safe bcrypt and Argon2 hashes.

1,000+ installs Updated 2 years ago 2 hooks
Not updated in 3+ years

CSRF-protection for authentication cookies. When enabled, this plugin makes sure the "SameSite" flag is set in authentication cookies.

700+ installs Updated 3 years ago 6 hooks
Not updated in 3+ years

Prevents WordPress from delivering full Page-Not-Found errors when the browser is not expecting a full HTML page. Saves bandwidth and…

60+ installs Updated 3 years ago

Alternatives in Security

See all →
Reviewed

The best anti-spam protection to block spam comments and spam in a contact form. The most trusted antispam solution for…

5+ million installs Updated 3 months ago 43 hooks

Firewall, Malware Scanner, Two Factor Auth, and Comprehensive Security Features, powered by our 24-hour team. Make security a priority with…

5+ million installs Updated 2 weeks ago 98 hooks

Easily improve site security with WordPress Hardening, Two-Factor Authentication (2FA), Login Protection, Vulnerability Detection and SSL certificate.

3+ million installs Updated 4 weeks ago 116 hooks

Simplified WordPress management. Manage site info, maintenance, security, & redirects.

3+ million installs Updated 7 days ago 7 hooks