🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
Comment Form CSRF Protection icon
Possibly abandoned Tested up to 6.3.15 #83 in comments

Comment Form CSRF Protection

WordPress has a 12-year-old unfixed security vulnerability that it does not properly validate incoming comments.

Active installs400+100+ tier
Downloads · 30d186▲ +50% vs prev. 30d
Rating5/52 reviews
Health score34/100At risk
All-time downloads16.3KSince Feb 2019
Support resolved—No recent threads
RequiresWP 4.2PHP 7.1+
Downloads · 7d54▲ +3.8% week over week
Our verdict

Consider an alternative

Comment Form CSRF Protection shows warning signs in 2026 — compare the alternatives below before installing. It runs on 400+ sites, is rated 5/5 and was last updated 3 years ago, and scores 34/100 on our health check.

  • Small user base (400+ active installs)
  • Very few reviews so far
  • No update in 3 years
  • Only tested up to WordPress 6.3 (latest is 7.1)

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

258Sep 3Oct 17Dec 1
Yesterday8
Daily average (1y)3
Peak day11Sep 15, 2026
Last 12 months1.1K

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Comment Form CSRF Protection stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
comments >100 10,000 Best comments plugins →
csrf #24 1,031 Best csrf plugins →
security >100 10,000 Best security plugins →
spam >100 4,480 Best spam plugins →

Version adoption

Share of active sites per release.

  • 1.489.7%
  • 1.26.4%
  • 1.04.0%

Rating breakdown

★★★★★★★★★★ 5 from 2 reviews

  • 5★100.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About Comment Form CSRF Protection

From the official readme · v1.4

Description

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!

  1. This plugin adds a secret cryptographically-secure token to the comment form. This is a unique value and is computationally impractical to guess it.
  2. Upon comment submission, the comment is rejected if the secret tokens are not present or computationally invalid.

Installation

  1. Upload the plugin files to the /wp-content/plugins/ directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. You are all set! There is nothing to configure. Your comment forms will contain the hidden token fields that will be properly validated upon submission.

Changelog

1.0

  • Initial release.

1.1

This is a minor release that contains minimal changes.

  • Marks the plugin as tested up-to WordPress 5.3
  • Fix in composer.json file that it required PHP^7.2 instead of intended ^7.1
  • A micro optimization in the plugin to call the lambda function directly within the CSRF check.

1.4

Minor release that contains several typo fixes and WordPress 6.3 compatibility

Full changelog on WordPress.org →

Screenshots

Comment Form CSRF Protection screenshot
Comment Form CSRF Protection screenshot

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best Comment Form CSRF Protection alternatives

All comments plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 Akismet Anti-spam: Spam Protection Akismet Anti-spam: Spam Protection The best anti-spam protection to block spam comments and spam in a contact form. The most… by Automattic 5M+ ★★★★★★★★★★ 4.7 (1.2K) 4 months ago 73
2 Disable Comments Disable Comments Disable comments site-wide or by post type, delete existing comments in bulk, and block… by WPDeveloper 1M+ ★★★★★★★★★★ 4.7 (282) 2 weeks ago 93
3 Antispam Bee Antispam Bee Sophisticated antispam plugin for effective daily comment and trackback spam-fighting… by pluginkollektiv 700K+ ★★★★★★★★★★ 4.8 (227) 3 months ago 72
4 Gravatar Enhanced – Avatars, Profiles, and Privacy Gravatar Enhanced – Avatars, Profiles, and Privacy The official Gravatar plugin, featuring privacy-focused settings, easy profile updates, and… by Automattic 200K+ ★★★★★★★★★★ 5 (3) 1 month ago 78
5 Disable Comments Disable Comments Disable, hide, bulk-delete & auto-reply to comments and WooCommerce reviews —… by rbplugins 100K+ ★★★★★★★★★★ 3.8 (25) 4 weeks ago 90
6 Disqus Comment System Disqus Comment System Disqus is the web's most popular comment system. Use Disqus to increase engagement, retain… by Disqus 30K+ ★★★★★★★★★★ 2.7 (219) 1 month ago 65
7 Throws SPAM Away Throws SPAM Away A powerful anti-spam plugin that silently discards spam comments without showing any error… by ウェブ屋のさとーさん 10K+ ★★★★★★★★★★ 5 (6) 3 months ago 75
8 Cookies for Comments Cookies for Comments Sets a cookie on a random URL that is then checked when a comment is posted. If the cookie… by Donncha O Caoimh (a11n) 10K+ ★★★★★★★★★★ 4.9 (18) 8 years ago 42
9 Subscribe to Comments Subscribe to Comments Subscribe to Comments allows commenters on an entry to subscribe to e-mail notifications… by Mark Jaquith 10K+ ★★★★★★★★★★ 3.9 (14) 2 months ago 77
10 Native PHP Sessions Native PHP Sessions Use native PHP sessions and stay horizontally scalable. Better living through superior… by Pantheon Systems 10K+ ★★★★★★★★★★ 4.9 (16) 12 months ago 46

FAQ

Comment Form CSRF Protection: quick answers

Straight answers, pulled from live WordPress.org data.

Source: WordPress.org

Is Comment Form CSRF Protection free?

Yes. Comment Form CSRF Protection is free to download and use from the official WordPress.org plugin directory.

Is Comment Form CSRF Protection safe to use in 2026?

Comment Form CSRF Protection shows warning signs in 2026 — compare the alternatives below before installing. It runs on 400+ sites, is rated 5/5 and was last updated 3 years ago, and scores 34/100 on our health check.

How many websites use Comment Form CSRF Protection?

Comment Form CSRF Protection is active on 400+ WordPress websites and has been downloaded 16,280 times since it launched in February 2019. It was downloaded 186 times in the last 30 days.

Does Comment Form CSRF Protection work with WordPress 7.1?

Comment Form CSRF Protection is officially tested up to WordPress 6.3.15, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

What PHP version does Comment Form CSRF Protection need?

Comment Form CSRF Protection requires PHP 7.1 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Comment Form CSRF Protection last updated?

The latest version, 1.4, was released on July 23, 2023 (3 years ago).

Who makes Comment Form CSRF Protection?

Comment Form CSRF Protection is developed and maintained by Ayesh Karunaratne.

What are the best alternatives to Comment Form CSRF Protection?

The most popular alternatives to Comment Form CSRF Protection are Akismet Anti-spam: Spam Pro… (5M+ installs), Disable Comments (1M+ installs) and Antispam Bee (700K+ installs).

Powered by PageForge

One template and a spreadsheet. A real page for every search.

PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.

  • CSV and XLSX, plus Google Sheets on Professional and Enterprise
  • Its own title, URL, SEO fields and schema for every page
  • Works with the block editor, Elementor, Divi and Avada
  • Free on WordPress.org, no credit card

↑↓ to move↵ to open