Skip to content
Sign in

Init Void Shield – Zero-DB, Honeypot, Anti-Spam

Zero-DB, zero-external-JS honeypot anti-spam for WordPress comments, core forms, and popular form plugins.

Not scanned yet WordPress plugin 30 installs

Install in

No install steps yet

Follow the steps on the source page.

Init Void Shield protects WordPress comment forms, the default login/registration/lost-password forms, and popular form plugins with a layered honeypot defense that requires no database tables, no external JavaScript, and no user friction.

This plugin is part of the Init Plugin Suite — a collection of minimalist, fast, and developer-focused tools for WordPress.

GitHub repository: https://github.com/brokensmile2103/init-void-shield

Core honeypot engine (always on for comments):

  1. Dynamic field names — derived from context + site salt (plus an optional custom prefix) so bots cannot hardcode field names.
  2. CSS-clipped honeypots — a text field and a checkbox hidden with rotating CSS techniques (never display:none or visibility:hidden, the two patterns CSS-aware bots specifically look for and skip) that bots fill but humans never see. The text field is also marked readonly, so browser and password-manager autofill (Chrome, saved-password prompts, and similar) never writes into it either — bots that scrape the raw HTML or drive a headless browser still fall for it exactly the same.
  3. Signed time tokens — each form carries a timestamp + HMAC hash verified server-side with hash_equals() to prevent timing attacks. Submissions under the minimum threshold are rejected; login/registration/other account-style forms use their own, shorter threshold by default (see Account Forms Minimum Submit Time), since a browser autofilling saved credentials lets a genuine visitor submit faster than someone typing a comment from scratch.
  4. JavaScript + headless-browser verification — a signed, per-form JS proof is injected after a configurable delay (plus a small random jitter, so the exact wait can’t be read from the page source and timed around), and the script flags common automation signals (navigator.webdriver, a zero-size browser window, HeadlessChrome/PhantomJS, Selenium/ChromeDriver traces, Playwright’s page bindings) picked up from real Selenium/Puppeteer/Playwright sessions. The proof is bound to the form’s own time token and never appears in plain text in the page, so a bot that scrapes the HTML and replays hidden values can’t produce it. Static crawlers, instant bots, and unmasked headless browsers all get caught; real users don’t.
  5. Submit Hold — on login, registration, comment, and other forms that submit without AJAX, a visitor who clicks submit before the guard is ready (typically right after the browser autofills a saved password) is held for a moment and submitted automatically once it is, instead of being rejected. Nothing is relaxed server-side.
  6. Non-browser User-Agent detection — rejects submissions whose User-Agent identifies a scripted HTTP client (curl, Python requests, Go, Scrapy, and similar) rather than a real browser, catching bots that skip JavaScript entirely and simply replay the static form fields. Bare placeholder values such as a lone Mozilla/5.0 are caught too. On by default; both lists are filterable.
  7. Block Cross-Site Submissions — rejects a submission the browser itself reports as sent from a different website (Sec-Fetch-Site: cross-site), a header page scripts cannot forge and privacy extensions don’t strip. A request without the header is never rejected by this check. On by default.
  8. Block REST API Comments (optional) — rejects comments posted directly through the wp/v2/comments REST endpoint, which the classic form-based layers cannot cover since those requests never carry the honeypot fields or tokens.
  9. Require Same-Site Referer (optional) — rejects a comment submission whose Referer header is missing or points elsewhere, catching bots that post directly to the comment endpoint. Off by default and disclosed as a trade-off, since some privacy-focused browsers strip Referer even on genuine same-site submissions.
  10. Comment content filters (optional) — a maximum number of links per comment, BBCode link blocking, blocking web addresses in the author name, and blocking comments written mostly in scripts you select (Cyrillic, Chinese, Arabic, and others). Unlike the behavioral layers, these read what was actually written, so they also catch spam posted by a real person or a real browser — including wpDiscuz comments, which the honeypot layers can’t see.

Key design goals:

  • No database clutter (zero tables, zero rows; stats use a single non-autoloaded option)
  • No external JS/CDN calls
  • No CAPTCHA, no puzzles, no user interruption
  • Logged-in users are bypassed automatically on the comment form (optional override in settings)
  • Every guard beyond the core comment form is opt-in — no new form is silently guarded when you update
  • Bots receive HTTP 200 OK on the comment form so they think they succeeded and move on

Filters

A short reference of the developer filters shipped with the plugin (all are standard WordPress filters, added with add_filter()):

  • init_plugin_suite_void_shield_skip_verification — skip comment-form verification for a request.
  • init_plugin_suite_void_shield_skip_login_verification / _register_verification / _lostpassword_verification / _multisite_signup_verification — force-disable an individual WordPress Core Forms guard, overriding its settings-page toggle.
  • init_plugin_suite_void_shield_login_scope_exempt — override the Referer-based heuristic used by the “wp-login.php only” Login Guard Scope.
  • init_plugin_suite_void_shield_honeypot_html — filter the rendered honeypot HTML block; receives the context string as a second argument.
  • init_plugin_suite_void_shield_kill_response_message / _title / _code — customize the soft-kill response shown to bots on the comment form.
  • init_plugin_suite_void_shield_min_time / _max_time / _js_delay — override the Minimum Submit Time, Maximum Token Age, and JS Token Delay thresholds.
  • init_plugin_suite_void_shield_hidden_style_variants — customize the pool of CSS techniques used to hide honeypot fields.
  • init_plugin_suite_void_shield_{context}_blocked_message — customize the rejection message for a given guard (e.g. ..._login_blocked_message, ..._woocommerce_blocked_message, ..._bbpress_blocked_message).
  • init_plugin_suite_void_shield_blocked_user_agent_signatures — customize the list of non-browser User-Agent substrings checked by Block Non-Browser User Agents.
  • init_plugin_suite_void_shield_blocked_user_agent_exact — customize the list of complete User-Agent values (e.g. a bare Mozilla/5.0) that Block Non-Browser User Agents rejects.
  • init_plugin_suite_void_shield_js_delay_jitter_max — override the maximum random jitter (milliseconds) added on top of the JavaScript Token Delay.
  • init_plugin_suite_void_shield_min_interaction_delay — override the minimum time (milliseconds) that must pass before a Require Real User Interaction event is accepted.
  • init_plugin_suite_void_shield_referer_exempt — force-exempt a request from the Require Same-Site Referer check regardless of its settings-page toggle.
  • init_plugin_suite_void_shield_cross_site_exempt — force-exempt a request from the Block Cross-Site Submissions check; receives the guard context as a second argument.
  • init_plugin_suite_void_shield_submit_hold_enabled — enable or disable Submit Hold for a given guard context (e.g. for a custom natively-submitted form added via init_plugin_suite_void_shield_build_guard_markup()).
  • init_plugin_suite_void_shield_submit_hold_fetch_wait — maximum time (milliseconds) Submit Hold waits for a pending Lazy Fetch request. Default 4000.
  • init_plugin_suite_void_shield_skip_content_filters — skip the comment content filters for a request.
  • init_plugin_suite_void_shield_comment_content_violation — add your own comment content rules: return a reason key to block a comment, or an empty string to allow it.
  • init_plugin_suite_void_shield_blocked_script_threshold — minimum share of letters (0–1, default 0.3) that must belong to a selected script before Block Comments in Selected Scripts rejects a comment.
  • init_plugin_suite_void_shield_allow_linkbacks — let pingbacks and trackbacks through the comment guard, overriding the settings-page toggle.
  • init_plugin_suite_void_shield_account_contexts — customize which guard contexts use the Account Forms Minimum Submit Time.

License

This plugin is licensed under the GPLv2 or later.

Written by Joobi from the project's own listing. See the source page

antispamcommentshoneypotno captchaspam
21 Nov 2026
Version 1.12 released. Not scanned yet.

1.12 – November 21, 2026

  • Fixed: with Apply to Logged-in Users enabled, every comment from a logged-in user was rejected. WordPress only fires comment_form_after_fields for guests, so the guard was never rendered for logged-in users while their submissions were still verified. The guard is now also rendered on comment_form_logged_in_after.
  • Fixed: on a theme that removes every guest field (name, email, website) from the comment form, the guard was never rendered and every guest comment was rejected. The comment_form action is now used as a fallback, and the guard is printed at most once per form.
  • Fixed: with Apply to Logged-in Users enabled, replying to a comment from the Dashboard (Comments screen) was rejected with the soft-kill message and the reply was lost. Replies sent through WordPress’s own reply handler, which already checks its nonce and the user’s capability, are now let through.
  • Fixed: with Block REST API Comments and Apply to Logged-in Users both enabled, users who can moderate comments were also blocked from posting comments through the REST API (block editor, admin tools). They are now exempt.
  • Changed: pingbacks and trackbacks are now handled explicitly. They are still blocked while the comment guard is enabled (unchanged behavior), but are recorded under a new “Pingback or trackback” reason instead of “Missing or invalid JS token”. Added Allow Pingbacks & Trackbacks under Comments (off by default) for sites that want to receive them, plus the init_plugin_suite_void_shield_allow_linkbacks filter.
  • Added Block Comments in Selected Scripts under Comments (nothing selected by default): rejects a comment when at least 30% of the letters in its text or author name belong to a script you check — Cyrillic, Chinese (Han), Japanese kana, Korean, Arabic, Hebrew, Greek, Thai, or Devanagari. Latin-script languages are never affected. Also applies to wpDiscuz comments. Threshold filterable via init_plugin_suite_void_shield_blocked_script_threshold.
  • Strengthened Headless Browser Detection: now also flags Playwright’s page bindings (__playwright__binding__, __pwInitScripts, __playwright_builtins__), which Playwright installs even in a headed browser with navigator.webdriver masked. CDP “Runtime.enable” detection was evaluated and deliberately left out, since it also flags real visitors who have DevTools open.
  • Strengthened Block Non-Browser User Agents: added Bun, Deno, Got, Mechanize, Ruby, ZGrab, and Nuclei signatures, plus a new exact-match list for placeholder values no browser sends on its own (a bare Mozilla/5.0, Mozilla/4.0, Mozilla, node, -). Filterable via init_plugin_suite_void_shield_blocked_user_agent_exact.
  • Security: the Lazy Fetch token endpoint now rejects a context parameter that is not a short string of letters, digits, _, ., :, or -, before any token is computed.
  • Stats: the statistics panel now shows the date counting started (set on the first block after a fresh install or a reset), and labels the two new block reasons.
  • Fixed: on Multisite, uninstalling the plugin now removes its options from every site in the network, not only the current one. Also removes the two new options.
  • Fixed: when the plugin files are saved with Windows (CRLF) line endings, the inline guard script no longer prints a stray carriage return on every line of the page source.
  • Removed the Tested up to line from the main plugin file header, as now required by Plugin Check (it is declared only in readme.txt). Tested up to WordPress 7.2.
  • Updated the Vietnamese translation and the .pot template for the new strings.

1.11 – September 23, 2026

  • Fixed: a real visitor could still be rejected on the Login form (and other account forms) when the browser autofilled a saved password and they clicked “Log In” within the first second. The JS token only existed after the JavaScript Token Delay had elapsed, and the Minimum Submit Time compares whole seconds, so such a click was flagged as “Missing or invalid JS token” or “Submitted too fast”. Added Submit Hold: on forms that submit without AJAX (WordPress core forms, comments, WooCommerce account forms, bbPress, BuddyPress), an early submission is now held for a moment and sent automatically once the guard is ready, instead of being rejected. No server-side check was relaxed — the held submission simply arrives once it satisfies them. The clicked button’s name/value is preserved, and repeated clicks while holding result in a single submission.
  • Security: the JS token is no longer the fixed string human_verified, which was identical on every site and could be posted by a bot without running any JavaScript. It is now a signed proof bound to the form’s own time token and context, embedded in the page only in sealed form. A submission carrying a missing, static, or mismatched proof is rejected with the new “Invalid JS proof” block reason. Lazy Fetch now refreshes the proof together with the time token. Purge your page cache once after updating — pages cached with the previous script will fail this check.
  • Added Block Cross-Site Submissions under Advanced Protection (on by default): rejects a submission the browser itself reports as sent from another website (Sec-Fetch-Site: cross-site). A request without the header is never rejected by this check. Exemptible per request via init_plugin_suite_void_shield_cross_site_exempt.
  • Strengthened Headless Browser Detection: now also flags HeadlessChrome/PhantomJS User-Agents, PhantomJS/Nightmare/DOM-automation globals, and Selenium ChromeDriver markers.
  • Strengthened Block Non-Browser User Agents: added HeadlessChrome, PhantomJS, HTTPX, aiohttp, axios, undici, HTTPie, and Colly signatures.
  • Added comment content filters under Comments (each opt-in, off by default): Maximum Links per Comment, Block BBCode Links, and Block URLs in Author Name. They also apply to wpDiscuz comments, which the honeypot layers cannot verify. New filters init_plugin_suite_void_shield_skip_content_filters and init_plugin_suite_void_shield_comment_content_violation (for adding your own rules).
  • Added WooCommerce Login (My Account and the checkout login prompt) and WooCommerce Lost Password guards under Community & E-commerce Integrations, both off by default. Both use the Account Forms Minimum Submit Time and benefit from Submit Hold.
  • Fixed: with Guard Lost Password Form enabled, every WooCommerce password-reset request was rejected, genuine ones included, since WooCommerce’s reset handler runs the same core check but its form never carried the honeypot fields. The WooCommerce lost-password form is now always guarded while the core Lost Password guard is enabled, and each form is verified against its own context.
  • Fixed: uninstalling the plugin left the Account Forms Minimum Submit Time, Require Same-Site Referer, and Block Non-Browser User Agents options behind.
  • Stats: WooCommerce blocks are now grouped as “WooCommerce account forms”, with new block reasons for the checks above.
  • Updated the Vietnamese translation and the .pot template for the new strings.

1.10 – September 14, 2026

  • Reorganized the Settings screen: moved Minimum Submit Time, Account Forms Minimum Submit Time, JavaScript Token Delay, and Maximum Token Age out of “Comments” into a new Timing & Token Engine section, since these are shared by every guarded form, not just comments. No setting names, values, or behavior changed.
  • Updated the Vietnamese translation and the .pot template for the new section strings.

1.9 – September 10, 2026

  • Fixed: a real visitor on an autofilled form (most often login) could be wrongly flagged “No real interaction detected” if the JS delay timer fired just before their submit click, even with Require Real User Interaction working as designed. The verdict is now re-checked at submit time and can only upgrade an already-stamped “no interaction” result to verified.
  • Added a separate Account Forms Minimum Submit Time setting (default 1 second), used by the Login, Registration, Lost Password, Multisite Signup, WooCommerce registration, and BuddyPress registration guards instead of the general Minimum Submit Time — autofill lets a real visitor submit faster than someone typing a comment. Set to 0 to disable this check for account forms only. The init_plugin_suite_void_shield_min_time and _max_time filters now also receive the guard context as a second argument.
  • Hardened the honeypot trap field with readonly, so browser and password-manager autofill never fills it in; bot coverage is unaffected.
  • Updated the Vietnamese translation and the .pot template for the new setting’s strings.

1.8 – September 8, 2026

  • Fixed: a bare ‘&’ inside the honeypot script could get HTML-entity-encoded by some environments (an HTML minifier, a multilingual plugin, a security/output-filtering plugin, or WordPress’s own convert_chars()), turning && into the literal text &#038;&#038; on the page. Browsers never decode entities inside <script> content, so this broke JS parsing entirely and silently rejected every submission. The script no longer emits any bare & character.
  • Fixed: a genuine first-time visitor’s comment could be wrongly rejected as unverified (succeeding only on a retry) on sites using a “delay JavaScript execution” optimization, since the script only listened for DOMContentLoaded, which had already fired by the time such a delayed script ran. It now checks document.readyState and runs immediately if the document is already past the loading state.
  • Added Non-Browser User-Agent detection (on by default): rejects submissions whose User-Agent identifies a scripted HTTP client (curl, Python requests, Go, Scrapy, and similar) rather than a real browser. Signature list is filterable via init_plugin_suite_void_shield_blocked_user_agent_signatures.
  • Added JavaScript Token Delay jitter: a small random amount of extra time (up to 400ms, filterable) is now added on top of the configured delay so it can’t be read from the page source and timed around.
  • Strengthened Require Real User Interaction: an interaction event now only counts once a short minimum delay has passed since script init, closing a gap where a bot could satisfy the check with one synthetic event at page load.
  • Added Require Same-Site Referer for comments (opt-in, off by default): rejects a submission whose Referer header is missing or points to a different site. Disclosed trade-off, same spirit as Login Guard Scope — some privacy-focused browsers strip Referer even on genuine submissions.
  • Removed all comments from the inline honeypot script rendered on every guarded form, since it prints to public page source on every load. Rationale now lives only in the plugin’s PHP source. Cuts the script’s rendered size by roughly a third.

1.7 – September 1, 2026

  • Fixed: the shared checkbox sanitizer treated any present value as enabled, causing every unchecked checkbox to be saved as 1 on the first save. Tightened to require an explicit '1' before treating a checkbox as on.

1.6 – August 30, 2026

  • Fixed: a setting could get permanently stuck at its saved value and silently refuse to change on Save — most noticeable on “Enable Init Void Shield”, since a fresh install starts already at its default of checked. Caused by register_setting()‘s default argument, which triggers a WordPress core edge case in update_option() once a setting’s value matches that default. Removed from every setting in this plugin; displayed defaults are unaffected.
  • Added automatic wpDiscuz compatibility: wpDiscuz builds its comment submissions from a fixed set of fields rather than serializing its form, so this plugin’s checks can never see or verify them. When wpDiscuz is detected active, its comments are now silently exempted from verification instead of being rejected.
  • Fixed: comment verification now resolves the post ID from the value WordPress core has already parsed, instead of re-reading the raw comment_post_ID POST field — not every comment form sends it under that exact name.

1.5 – August 30, 2026

  • Added Login Guard Scope: a new “wp-login.php only” option for the Login Guard, which stops guarding a front-end wp_login_form() usage (e.g. a custom login page, widget, or modal) entirely while keeping full protection on the native wp-login.php form. Intended for sites where that front-end form lives on a page a full-page cache might serve stale; uses the Referer header as a heuristic to tell the two forms apart (a disclosed trade-off, not a cryptographic guarantee). The default (“Everywhere”) is unchanged and remains the strongest option.
  • Raised the Maximum Token Age ceiling from 24 hours to 30 days, so sites with long-lived full-page caching can set a value that comfortably covers their cache lifetime.
  • Added Lazy Fetch (Cache-Safe Tokens) under Advanced Protection (off by default): refreshes the time token via a small same-origin fetch() request (plain JavaScript, no jQuery, no external service) as soon as the page truly loads, instead of relying only on the value baked in at render time — which, on a cached page, reflects when the cache was generated rather than when a real visitor loaded it. Applies to every guarded form. Falls back to the original baked-in token if the request fails or JavaScript is unavailable, so enabling it can only help, never introduce a new failure mode. Its REST route is registered under the initvoshi/v1 namespace, matching the naming convention used across the Init Plugin Suite.

1.4 – August 30, 2026

  • Security: the signed time token is now bound to the specific guard context it was issued for (previously it was only a function of the timestamp, so a valid token captured from one form — e.g. a public comment form — could in theory be replayed against a different, more sensitive context, such as the login guard). Field names already differed per context, but the token itself did not.
  • Security: added a Maximum Token Age setting (default 1 hour) so a token cannot be captured once and cached for an unlimited-time replay. Submissions carrying a token older than this are now rejected with a new token_expired block reason.
  • Fixed: the Minimum Submit Time and JavaScript Token Delay settings on the settings page were not actually being read during verification/rendering — the code always used the filter defaults (3 seconds / 1000ms) regardless of what was saved. Both settings now take effect as expected; the corresponding developer filters still apply on top. Note for existing users: if you had previously changed either value away from the default, it silently had no effect before — after updating it will now be genuinely enforced, so it’s worth revisiting both values on the settings page to confirm they’re still what you want.
  • Added an optional Require Real User Interaction check under Advanced Protection (off by default): also requires at least one real mouse, keyboard, touch, or scroll event before a submission is accepted, to catch bots that simply wait out the JS delay without interacting with the page.
  • Added optional honeypot integrations for WooCommerce (My Account registration form), bbPress (New Topic and Reply forms), and BuddyPress (registration form) — each off by default, only activates if the matching plugin is active.
  • Added an optional Multisite signup guard for wp-signup.php (off by default, only has an effect on a Multisite install).
  • Added an optional Dashboard widget (off by default) showing a compact “Blocked Submissions” summary with the top blocked channels and reasons.
  • Updated translation template (.pot) and the Vietnamese translation for all new strings.

1.3 – August 24, 2026

  • Fixed: the login guard now also covers wp_login_form() (used to place a login form anywhere on the front end, e.g. a widget or theme template). Previously only the native wp-login.php form was guarded; a front-end wp_login_form() submission carried no honeypot fields and was always rejected with “Invalid login attempt.” once the login guard was enabled.
  • Added three developer filters — init_plugin_suite_void_shield_skip_login_verification, init_plugin_suite_void_shield_skip_register_verification, and init_plugin_suite_void_shield_skip_lostpassword_verification — to force-disable each WordPress Core Forms guard for a given request regardless of its settings-page toggle.

1.2 – August 23, 2026

  • Added optional honeypot guards for the default WordPress login, registration, and lost-password forms (each off by default; enable individually under WordPress Core Forms).
  • Added optional honeypot integrations for Contact Form 7, WPForms, and Gravity Forms (each off by default; only activates if the corresponding plugin is active).
  • Added a custom honeypot field-name prefix setting under Advanced Protection.
  • Added CSS trap rotation: the inline hiding technique and trap field order are now randomized per render to make pattern-learning harder for CSS-aware bots.
  • Added lightweight, opt-out statistics (total/by-channel/by-reason blocked-submission counters) stored in a single option with autoload explicitly disabled, plus a reset action on the settings page.
  • Added client-side headless-browser detection (navigator.webdriver, zero-size window) layered on top of the existing JS token check; no external calls.
  • Refactored the honeypot engine into a shared internal module reused by the comment form, the WP core form guards, and all thre
22 Aug 2026Listed on Joobi from WordPress.org.

Follow this listing's changes (Atom feed)