Spambargo: Anti-Spam for Forms & Comments
Block spam in Elementor, Contact Form 7, JetFormBuilder, Ninja Forms, WooCommerce and comments with keyword, link and email checks.
Install in
Spambargo is a simple anti-spam plugin for WordPress site owners, agencies and website builders. It helps block unwanted form submissions, comments and WooCommerce spam without requiring a third-party CAPTCHA service or complicated setup.
It works with Elementor Pro Forms, Contact Form 7, JetFormBuilder, Ninja Forms, WooCommerce registration and checkout, WooCommerce Checkout Blocks, WordPress comments, and eligible generic lead forms.
Common spam terms are pre-filled on fresh installs. Review and adjust the rules for your audience. The most useful controls are shown first, while technical options stay under Advanced settings.
What can Spambargo block?
- Messages containing blocked words or phrases.
- Messages with too many links.
- Visitors from selected countries (when a supported geolocation source is available).
- Visitors whose preferred browser languages match selected language codes.
- Disposable and suspicious email addresses.
- Forms submitted unrealistically fast.
- Repeated submissions from the same visitor.
- Specific email addresses and email domains.
- Specific IP addresses and IPv4 or IPv6 network ranges.
- Messages written mostly in capital letters.
- Clearly suspicious phone number patterns when the optional phone check is enabled.
- Additional automated spam using optional browser-token and math-challenge checks.
Supported forms and integrations
- Elementor Pro Forms.
- Contact Form 7.
- JetFormBuilder.
- Ninja Forms.
- WooCommerce registration and classic checkout.
- WooCommerce Checkout Blocks.
- WordPress comments.
- Eligible generic HTML lead forms using a best-effort browser-side pre-check.
Native integrations validate submissions on the server. Generic forms without a native integration use a browser-side pre-check and require a native or custom server-side integration for protection against direct POST requests.
Simple to set up
- Dashboard statistics and the main protection settings are available on one screen.
- Blocked words and phrases, link limits, email checks and automatic limits appear first.
- Country and browser-language selectors support searching, multiple choices, flags and comma-separated codes.
- Spam keywords are populated by default on new installs, without overwriting existing settings.
- Advanced technical controls stay collapsed until you need them.
- A searchable spam log helps you understand what was blocked and why.
How protection works
Spambargo combines several lightweight checks instead of relying on a single CAPTCHA:
- Literal blocked-word and phrase rules with case-insensitive matching.
- Link-count and email-pattern checks.
- Honeypot and minimum submission-time checks.
- Atomic minute and hourly rate limits with IPv6 network grouping.
- Manual email, domain, IP and CIDR block lists.
- Optional phone validation, math challenge and temporary signed browser correlation token.
- Trusted-proxy handling for forwarded visitor IP addresses.
- Automatic log retention, streamed CSV export and batched email or webhook notifications.
Spambargo runs its checks locally on the WordPress site by default and does not require a CAPTCHA service operated by a third party.
Privacy
Spambargo does not send data to a service operated by the plugin author. All checks run on the site server by default.
When a submission is blocked, the plugin may store the IP address, email address, form identifier, block reason, optional content snippet and optional verified fingerprint hash. The content snippet can be disabled and logs are cleaned according to the configured retention period.
Optional browser correlation collects coarse screen-size buckets, timezone, language, platform, CPU-core count and touch capability. The server combines them with a random per-session identifier and returns a signed hash token stored in browser sessionStorage for up to eight hours. Raw attributes are not written to the spam log. Administrators should update their privacy notice as required by applicable law. Spambargo integrates with WordPress personal-data export and erasure tools and adds suggested text to the Privacy Policy Guide.
When a webhook URL is configured, batched blocked-submission data is sent to that administrator-selected endpoint. This is the only optional external data transfer performed by the plugin.
Written by Joobi from the project's own listing. See the source page
2.5.0
- Fixed: In the default compatibility mode, a form left open longer than the 30-minute token lifetime is no longer rejected. Strict token mode is unchanged.
- Fixed: Elementor drop-down, radio, checkbox, consent, upload and hidden field values are no longer checked against blocked words and link limits, so site-defined options and tracking URLs cannot block a real lead.
- Fixed: Ninja Forms submissions identified as spam are now stopped before Ninja Forms sends email or saves the submission. Previously they were logged as blocked but still processed.
- QA corrections: Alphabet checks only message/textarea fields, email addresses do not consume link quotas, and WooCommerce GeoIP lookups cannot call remote fallback providers.
- Checkout safety: WooCommerce checkout bypasses optional alphabet, browser-language and phone-number checks; other protections remain active.
- Browser-language blocking now has a separate toggle; existing configured lists remain active unless disabled.
- Administrator notice is specific to Elementor Pro and release metadata is shortened for WordPress.org.
- Upgrade safety: Ignore unsafe standalone stopwords and overly broad terms during blocking, while preserving every existing saved rule and displaying a precise administrator warning. This prevents legacy lists containing terms such as “a” or “the” from silently rejecting legitimate Elementor enquiries after the form-action fix.
- Added read-only warnings for short/common saved keywords and symbol-only rules; no saved rules or preferences are modified.
- Added a diagnostic notice when country rules are configured without an apparent trusted geolocation source; do not accept untrusted Cloudflare headers.
- Populate the blocked-submission country column when a trusted lookup is available, and version the honeypot CSS URL using its file contents to reduce stale-asset risk.
- Fixed: Honeypot CSS no longer positions a hidden field 10,000 pixels off-screen, preventing horizontal page scrolling on RTL and LTR sites while keeping the trap functional.
- Fixed: Elementor Pro submissions identified as spam were logged as blocked but still sent their email and other form actions. Spambargo now registers a field error, which makes Elementor stop before any action runs. Existing sites receive a dismissible admin notice to review their rules and test a legitimate lead before relying on them.
- Added: Optional (off by default) Elementor drop-down, radio and checkbox validation against the configured options. Enable explicitly for static choice fields; dynamic choices may require a filter.
- Added: Elementor phone fields are detected by their Tel field type, not only by field names containing “phone”.
- Added: “Allowed message alphabets” setting that blocks submissions written mainly in other alphabets (for example Cyrillic or accented Latin), based on the submitted text itself.
- Added: “Expected phone numbers” setting with an Israel mode that accepts valid Israeli numbers or numbers written in international format with + or 00.
- Added clearer visitor messages for phone and alphabet blocks.
- Elementor: the inline error is shown on the related field (message, phone, email or the invalid choice) instead of always on the first field.
- Alphabet detection for Elementor forms only checks text typed by the visitor, never hidden, tracking, consent or choice fields.
- Added the wpas_elementor_validate_choice_field filter for fields whose options are changed in the browser by another plugin.
- Supports Elementor Pro versions that do not expose raw checkbox values.
- Alphabet detection reads message or textarea content only, never visitor names; forms without message text skip this optional check to prevent blocking international names.
- JetFormBuilder alphabet detection reads text and textarea fields from the form’s server-side Gutenberg blocks, including default field names, while excluding email, phone, hidden and choice fields. If the form definition is unavailable, conservative generic extraction is used.
- Alphabet detection reads textarea/message fields in CF7, Ninja Forms and generic forms; WooCommerce checkout is excluded from alphabet and region-specific phone blocking to avoid rejecting purchases.
- Changed: Reduced new-install keyword defaults to a short, more specific starter list to avoid blocking ordinary enquiries. Previously stored lists are unchanged.
- Rate limits now count only submissions that passed every other check, so blocked spam from a shared IP address no longer uses up the limit of real visitors on the same network.
2.4.10
- Added optional, non-intrusive support links for Ko-fi and PayPal at the top and bottom of Spambargo admin pages.
- Added searchable, multi-select country and browser-language block lists with flags, code entry and autocomplete.
- Added optional server-side checks for configured country and browser-language blocking; both lists default to empty.
- Pre-filled existing spam-keyword recommendations on fresh installs without overwriting saved configurations on upgrades.
2.4.9
- Changed the plugin name punctuation to a colon for cleaner, consistent branding in WordPress Admin.
- Rewrote the short description to clearly name supported form integrations and key spam checks.
- Updated the dashboard title and related plugin-name strings for consistency.
- No spam-protection logic, defaults or stored data were changed in this release.
2.4.8
- Removed bundled PO and MO files so translations are delivered through translate.wordpress.org language packs.
- Converted built-in visitor messages to the standard WordPress gettext API.
- Registered every setting with an explicit type and sanitization callback.
- Added a dedicated webhook-secret validator that preserves printable HMAC secrets exactly without exposing them in the interface.
2.4.7
- Removed an unnecessary fclose() call from the streamed CSV export so the package passes WordPress Coding Standards.
- The php://output stream remains managed automatically by PHP at the end of the request.
2.4.6
- Replaced the optional English recommendation preset with a strict, editable set of common gambling, pharmaceutical, financial, SEO outreach and adult-spam rules.
- Kept every recommended rule opt-in and stopped adding blocked-content rules automatically on new installations.
- Clarified that each line is an independent literal rule, matching complete words or ordered multi-word phrases without case sensitivity.
- Removed administrator-supplied regular-expression execution and bounded the text allowed between phrase terms.
- Fixed the zero-link setting so it blocks every message containing a link.
- Prepared signed fields for native integrations even when their forms contain password fields.
- Restricted webhook delivery to validated HTTPS endpoints.
- Localized the honeypot label, sanitized custom visitor messages defensively and refreshed the Hebrew translation files.
2.4.5
- Removed dynamically interpolated SQL fragments from spam-log filtering and sorting queries.
- Prepared every log query with an explicit placeholder list and fixed replacement counts.
- Escaped WooCommerce Store API exception messages directly at the exception sink for static-analysis compatibility.
2.4.4
- Resolved Plugin Check errors for prepared database queries, output handling and translator comments.
- Sanitized request inputs and removed discouraged runtime configuration and translation-loading calls.
- Added a conservative starter list of common spam phrases while preserving customized lists.
2.4.1
- Clarified how blocked words and phrases are matched in the settings screen.
- Multi-word rules now require every word in the same order while allowing extra words between them.
- Expanded the safe local recommendation set without adding broad one-word rules.
2.4.0
- Combined the dashboard and main protection settings on one screen.
- Moved technical controls into an accessible Advanced settings panel that is closed by default.
- Reordered the settings so blocked phrases, link limits, temporary email domains and automatic limits appear first.
- Rewrote field labels and explanations in clear English and Hebrew.
- Changed the recommended minimum submission time to 2 seconds and clarified that only faster submissions are blocked.
- Kept Spam Log and Tools as separate menu pages.
Follow this listing's changes (Atom feed)