Cardea – Proof-of-Work Comment Spam Protection
Lightweight, zero-dependency Proof-of-Work anti-spam protection for WordPress comments.
Use with caution
Cardea works, but test it on a staging site before relying on it in 2026. Was last updated 3 months ago, and scores 60/100 on our health check.
- Tested with the latest WordPress (7.1)
- Small user base (<10 active installs)
- Very few reviews so far
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where Cardea stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| anti-spam | >100 |
| comments | >100 |
| Proof of Work | >100 |
| protection | >100 |
| spam | >100 |
About Cardea
From the official readme · v1.0.2Description
Are you tired of anti-spam plugins that bloat your site, inject third-party tracking, or constantly upsell you on premium SaaS subscriptions? Are you looking for a straightforward, lightweight solution that just protects your comments without the extra baggage?
Then Cardea is the right tool for you.
Cardea is a radically simple, zero-dependency Proof-of-Work (PoW) comment spam protector. Developed transparently on GitHub as a purely open-source project, it does one thing and does it perfectly: it stops automated bot spam on native WordPress comments.
Why Choose Cardea?
Cardea offers distinct advantages for site owners who value simplicity, privacy, and performance:
-
Hyper-Focused & Zero Bloat – Cardea is strictly dedicated to the native WordPress comment system. Unlike multi-purpose anti-spam plugins that inject heavy compatibility layers for various form builders and e-commerce platforms, Cardea remains extremely lightweight and performant—protecting only what you need protected.
-
100% Standalone & Sovereign – No external API keys. No commercial SaaS tiers. No phone-home telemetry. Cardea is entirely self-hosted and self-contained. Your comment protection never depends on a third-party service staying alive.
-
Strict Privacy (GDPR Compliant) – Because the Proof-of-Work computation happens locally in each visitor’s browser, there are no tracking cookies, no user profiles, and no third-party data transfers. Unlike cloud-based CAPTCHA solutions, Cardea transmits nothing to external servers—making it inherently GDPR-friendly.
-
Reduced Attack Surface – By doing one thing perfectly (protecting native comments), Cardea avoids the security vulnerabilities inherent in massive, multi-ecosystem integrations. A focused codebase means fewer CVEs and tighter security.
-
Plug-and-Play Simplicity – No complex routing rules. No integration toggles. No configuration mazes. Users simply activate Cardea and their discussion threads are protected immediately.
To view the source code, contribute, or report issues, visit the Cardea GitHub Repository.
How It Works
- Challenge Generation: When a page with a comment form loads, the server generates a cryptographically signed challenge using HMAC-SHA256. No database write occurs at this stage.
- Client-Side Mining: When a user focuses on the comment textarea, a JavaScript Web Worker begins mining in the background.
- Solution Discovery: The worker repeatedly hashes the challenge string (nonce + timestamp + salt) with incrementing counter values until it finds a hash with the required number of leading zeros.
- Server Verification: On submission, the server first verifies the HMAC signature (ensuring the challenge wasn’t tampered with), then validates the PoW solution, and finally records the used signature in a capped, self-pruning replay store to prevent replay attacks.
Features
- Zero Database Bloat on Load – Challenges are generated using stateless HMAC signatures, meaning the plugin requires exactly zero database writes when a visitor loads a page.
- Zero Dependencies – No external APIs or services required.
- Client-Side Mining – Heavy computation happens in the user’s browser using Web Workers.
- Deferred Execution – The cryptographic mining engine only spins up when a user interacts with the comment field, ensuring casual readers incur zero performance penalty.
- Self-Cleaning Replay Protection – Server-side state is only stored upon a successful comment submission to prevent bot replay attacks; expired entries are pruned automatically and the store is capped (1024 signatures).
- Server-Side Verification – Server verifies HMAC signature first, then performs SHA-256 PoW validation.
- Configurable Difficulty – Adjust the number of leading zeros required (1-8).
- Configurable Time Window – Set how long challenges remain valid (5-120 minutes).
- Non-Intrusive – Works transparently for legitimate users; spammers must complete the PoW challenge.
- WordPress Standards – Follows WordPress coding standards and best practices.
- Privacy First (GDPR Friendly) – No cookies, no user tracking, no CAPTCHA popups, and absolutely zero data sent to third-party cloud APIs.
- Smart Pathway Protection – Gates anonymous comment submission end to end: the comment form requires a solved Proof-of-Work challenge, and anonymous REST comment creation is already rejected by WordPress core (401) — Cardea additionally applies the same PoW check to any REST comment creation core permits, as a defense-in-depth layer. Native Trackbacks/Pingbacks and authenticated requests are allowed.
- Page Caching Compatible – Uses dynamic REST API endpoint to fetch fresh challenges, ensuring compatibility with edge caching (Cloudflare, Varnish) and full-page caching plugins.
- Logged-In User Bypass – Skips PoW challenge for authenticated users, eliminating unnecessary CPU usage on the frontend.
Architecture & Testing
Cardea is built with an enterprise-grade engineering stack focused on reliability and performance:
Frontend Architecture:
* Zero-dependency JavaScript using native Web Crypto APIs (crypto.subtle)
* Web Workers for background cryptographic mining (non-blocking UI)
* Dynamic challenge fetching via REST API (compatible with page caching)
* Skip PoW for logged-in users (zero CPU overhead for authenticated commenters)
Backend Architecture:
* Localized replay protection via a capped replay store (single option, no per-token rows)
* Self-pruning: expired entries are cleared automatically on write (no cron dependency)
* Single verification pass: signature check + PoW validation
* Single-use tokens: a challenge can be redeemed exactly once, which bounds any interception-style attack to a single comment (standard one-shot-token semantics)
Testing Stack:
* PHPUnit – Backend logic verification (HMAC generation, challenge validation, replay prevention)
* Jest – Cryptographic worker validation (difficulty checking, solution finding, message interface)
* Playwright – End-to-End browser testing integrated with WordPress Playground (full WordPress environment)
This comprehensive testing approach ensures the plugin handles legitimate users seamlessly while actively blocking sophisticated bot attacks.
Developer Rigor
Cardea is built with an enterprise-grade engineering stack focused on reliability and performance:
Architecture:
* Zero Database Bloat on Load – Stateless HMAC signatures ensure zero database writes on page load
* Self-Cleaning Replay Protection – Uses a capped replay store that prunes expired entries automatically
* Deferred Execution – Mining only starts when user interacts with comment field
Testing Stack:
* PHPUnit – Backend logic verification (HMAC generation, challenge validation, replay prevention)
* Jest – Cryptographic worker validation (difficulty checking, solution finding, message interface)
* Playwright – End-to-End browser testing integrated with WordPress Playground (full WordPress environment)
Cross-Theme Compatibility:
* Uses HTMLFormElement.prototype.submit.call() to bypass DOM clobbering issues
* Graceful fallback for browsers without Web Worker support
Installation
- Upload the
cardeafolder to your/wp-content/plugins/directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- Configure the settings under Settings > Cardea PoW.
Changelog
Security and performance improvements: REST PoW verification parity, bounded self-pruning replay store, synchronous in-worker SHA-256 miner (works over plain HTTP too), WordPress 7.1 set_option() compatibility.
1.0.2
- Security: REST comment submissions now go through the same PoW verification as the comment form.
- Security: unified, generic verification failure messages (per-cause codes no longer revealed to clients).
- Security: configured difficulty is applied at verification time.
- Performance: replay protection is a single capped (1024), self-pruning
cardea_usedoption instead of two transient rows per comment. - Performance: synchronous in-worker SHA-256 mining – no
crypto.subtledependency (works on non-secure/HTTP contexts) and no counter cap; server verification wire format unchanged. - Compatibility: WordPress 7.1 removed
set_option(); plugin writes now useupdate_option(). - Architecture: new
Cardea_Comment_Gateclass (pure PoW core), single source of truth for the version in tests, unified packaging exclusions, shared e2e fixture. - Docs: accurate XML-RPC/REST behavior notes, difficulty solve-time guidance.
1.0.1
- Verified compatibility with WordPress 7.1
1.0.0
- Initial release
- HMAC-signed challenge generation (zero DB writes on page load)
- Web Worker-based client-side mining
- Admin settings page
- Configurable difficulty and time window
- Self-cleaning replay protection via WordPress transients
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.
Best Cardea alternatives
All anti-spam plugins →FAQ
Cardea: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is Cardea free?
Yes. Cardea is free to download and use from the official WordPress.org plugin directory.
Is Cardea safe to use in 2026?
Cardea works, but test it on a staging site before relying on it in 2026. Was last updated 3 months ago, and scores 60/100 on our health check.
How many websites use Cardea?
Cardea is active on <10 WordPress websites and has been downloaded 611 times since it launched in April 2026. It was downloaded 78 times in the last 30 days.
Does Cardea work with WordPress 7.1?
Yes. The developer has tested Cardea up to WordPress 7.1.5, the latest release. It requires WordPress 6.0 or newer.
What PHP version does Cardea need?
Cardea requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Cardea last updated?
The latest version, 1.0.2, was released on September 4, 2026 (3 months ago).
Who makes Cardea?
Cardea is developed and maintained by omikheev.
What are the best alternatives to Cardea?
The most popular alternatives to Cardea are Akismet Anti-spam: Spam Pro… (5M+ installs), Antispam Bee (700K+ installs) and WP Armour (400K+ 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
