Rabbit Builds Anti-Spam Comment Shield
Rabbit Builds Anti-Spam Comment Shield
Description
Rabbit Builds Anti-Spam Comment Shield is a fast, reliable anti-spam plugin for the default WordPress commenting system. It blocks automated bot submissions using layered validation, while keeping the experience clean for real visitors.
Developed and maintained by Rabbit Builds β visit our website to explore more WordPress tools and solutions.
Important
- Clear your page cache after activation or after changing plugin settings.
- Works with the default WordPress comment form only (not AMP comment forms).
Features
- π‘οΈ Hash-Based Verification β Blocks bots by hiding the comment form action URL
- π― Honeypot Trap β Hidden field that catches bots filling every input
- β±οΈ Time-Based Check β Rejects comments submitted too quickly
- π REST API Protection β Blocks unauthenticated REST API comments (disable for headless setups)
- π Spam Statistics Dashboard β Real-time total & daily blocked spam counter
- βοΈ Clean Settings Page β Status at a glance, one switch per protection layer and a live preview of the blocked message
- π Admin Bar Counter β See blocked spam count in the admin bar
- βοΈ Custom Block Message β Personalize the blocked spam response
- 100% GDPR Compliant β No external requests, no cookies, no tracking
- Captcha-Free β Completely invisible to your visitors
- ~200 bytes inline JavaScript β Zero performance impact
- Compatible with all page caching and performance optimization plugins
How does it work?
- The plugin removes the comment form action URL from raw HTML output.
- When real user interaction is detected (scroll, mouse move, touch, or focus), JavaScript restores the action URL with a unique hash token.
- On submit, the server validates the hash token, checks the honeypot field, and verifies submission timing.
- If any check fails, the request is blocked with a 403 response before spam can reach your database.
License
This plugin is licensed under GPL-2.0-or-later.
You may use, modify, and redistribute it under the terms of the GNU General Public License.
Installation
To install from the WordPress Dashboard:
- Go to Plugins menu > Add New
- Search for Rabbit Builds Anti-Spam Comment Shield
- Activate the plugin
- If using a page cache, clear/purge the cache
To install manually:
- Download the Rabbit Builds Anti-Spam Comment Shield plugin
- Upload to the
/wp-content/plugins/directory - Activate through the ‘Plugins’ menu
- If using a page cache, clear/purge the cache
Screenshots

Overview: protection status, spam blocked in total and today, and which protection layers are on.

Protection layers: one switch for each layer, with a short explanation of what it stops.

Blocking: the minimum submit time, your blocked message and a live preview of what a blocked visitor sees.

How it works: the four-step defense every comment passes, and what to know about privacy and speed.
Faq
Go to Settings > WP Anti-Spam to enable or disable protection modules, adjust timing thresholds, customize the blocked message, and review spam statistics.
Open any post with comments enabled and submit a normal comment. If the comment is accepted, the plugin is working. If you see a 403 error, clear your page cache and try again. If it still fails, your theme may use a custom comment form IDβplease open a support topic.
Only the default WordPress commenting system is supported. Third-party systems such as Disqus, JetPack Comments, wpDiscuz, and AMP comments are not supported.
Please open a support topic on WordPress.org or reach out to us directly at support@rabbitbuilds.com. We typically respond within 24 hours.
We love hearing ideas from our users! Send your feature requests or custom development enquiries to studio@rabbitbuilds.com and we’ll get back to you.
This plugin is developed and maintained by Rabbit Builds β a web development studio focused on building fast, reliable, and privacy-friendly WordPress tools.
Reviews
Helped me to save my time
By rafique70 on March 30, 2026
In my website category spam often happens more, it helped me to save my time. Became more useful after update. Will wait for new updates.
Changelog
2.1.0
- New: redesigned settings page in the Rabbit Builds design: protection status and spam counts at a glance, a section menu (Overview, Protection layers, Blocking, How it works, Tools), a switch for each layer, a live preview of the blocked message and an unsaved-changes warning
- Fixed: the admin bar counter could show a broken image instead of the shield (the emoji is replaced by a Dashicons shield)
- Fixed: notices from other plugins no longer land inside the settings page header
- Improved: the settings page uses system fonts and no animations library, and still makes no outside requests
- Tested with WordPress 7.1
2.0.6
- Tested with WordPress 7.0 “Armstrong”
- Fixed: honeypot and time-based checks no longer fail-open on sites with long-lived page caches (the 24-hour nonce gate has been dropped β the honeypot field’s presence is itself the spam signal)
- Fixed: hash-based verification now tolerates extra query-string parameters (e.g. CDN/tracking params appended to wp-comments-post.php)
- Fixed: replaced deprecated
current_time('timestamp')usage; “last blocked” time is now stored as a Unix timestamp and computed timezone-correctly on the settings page - Improved: protection hooks now register on
initinstead of at file load β removes work from admin/AJAX/REST/CLI requests that don’t involve commenting - Improved:
rbascs_statsoption is now non-autoloaded (one-time migration runs automatically on upgrade) - Improved: REST API Protection setting now explicitly warns headless/decoupled sites that it will block their REST comment flow
- Improved: deferred default-message translation to display time to avoid the WP 6.7+ “translations loaded too early” notice
2.0.5
- Updated dashboard UI color scheme to emerald green for a trust-focused design
- Removed redundant CSS rules and cleaned up codebase
- General code audit and optimization
2.0.4
- Fixed WordPress.org plugin review issues
- Updated function/constant prefixes to avoid conflicts (rbascs_ and RBASCS_)
- Fixed text domain to match plugin slug (rabbitbuilds-anti-spam-comment-shield)
- Converted inline JavaScript to use wp_enqueue_scripts and wp_add_inline_script()
- Converted block response to use wp_die() instead of raw HTML
- Fixed file path detection to use plugin_dir_path() instead of ABSPATH
- Improved escaping on all translatable strings
- Added contributors to README
2.0.3
- Rebranded plugin display name to “Rabbit Builds Anti-Spam Comment Shield”
- Updated plugin slug to “rabbit-builds-anti-spam-comment-shield”
2.0.2
- Major Rebrand β Renamed from “Forget Spam Comment” to “Anti-Spam Comment Shield”
- New: Honeypot trap field for catching bots
- New: Time-based submission check (configurable threshold)
- New: REST API comment protection
- New: Modern settings page with card-based UI and toggle switches
- New: Real-time spam statistics (total, today, last blocked)
- New: Admin bar spam counter
- New: Custom blocked message setting
- New: Reset to defaults button
- New: Expanded event triggers (scroll + mousemove + touchstart + focus)
- New: Expanded comment form ID selector for more theme compatibility
- Improved: Block response page with modern, branded design
- Improved: Activation notice with modern styling
- Updated: Requires WordPress 5.0+ and PHP 7.4+
1.1.8
- Tested with 6.6.1 Updated on 09-Aug-2024.
1.1.7
- Tested with 6.5.5 Updated on 09-July-2024.
1.1.6
- Hotfix for Bedrock Compatibility. Updated on 30-Jan-2024.
1.1.5
- Enhanced Bedrock Compatibility. Updated on 24-Jan-2024.
1.1.4
- Added a fallback to cover unexpected cases. Updated on 20-Nov-2023.
1.1.3
- Enhanced uniqueness in query string parameters. Updated on 19-Nov-2023.
- Kindly clear your page cache after updating to version 1.1.3.
1.1.2
- Tested with WordPress 6.4.1 and PHP 8.2.12
- Addressed referral handling for increased precision
- Improved code readability and consistency following WordPress coding standards
1.1.1
- Tested with WordPress 6.2 and PHP 8.2.4
1.1.0
- Tested with WordPress 6.1.1 and PHP 8.2.3
- Updated links
1.0.9
- Tested with WordPress 6.0
1.0.8
- Tested with WordPress 5.9.1 and PHP 8.1.3
1.0.7
- Tested with WordPress 5.8
- Enhanced compatibility
1.0.6
- Tested plugin up to 5.7
1.0.5
- Added hint for purging cache in the generated error page to assist first time plugin user.
1.0.4
- Minor tweaks
1.0.3
- Minified inline JS for better performance
- Translation made available for Hindi, Bengali, English (United States), English (UK).
- Minor tweaks
1.0.2
- Added hint for purging cache upon plugin activation
- Added support links
1.0.1
- Performance optimization
1.0.0
- Initial release