WS Antispam stops spam in WordPress comments, Contact Form 7 forms, Elementor Pro forms and registration forms (Profile Builder and the WordPress register form). Every check runs on your own server, so there is no API key and no quota that can run out. Cloudflare is an optional extra source of information, never a requirement.
Download v1.1.3Every held message stays in the Caught list for 30 days. "Not spam" delivers it as if it had never been caught: the form's own email goes out, or the comment is published. On days when a "probably a person" message was held, one email lists them with a "deliver it" link each. The link opens a page with a button, because email scanners open links on their own.
A registration gets no "sent" answer, because the person would try to log in. A caught registration creates no account and shows one error under the email field: "We could not create the account. Email us at … and we will register you." "Not spam" creates the account and emails the person a link to choose a password. The password typed on the form is never stored.
Each kind of form has its own switch under Settings, Protected forms. Switch one off when another plugin already guards it.
A small script fetches a signed check from the site when a visitor first clicks into a form. A robot that posts directly has no check and gets the "certainly spam" answer. The check is never in the page, so pages from a full-page cache keep working. A page cached before the plugin was turned on has no script, so activation clears the cache of twelve common cache plugins, and for 48 hours a message without the check gets the "please call or email us" answer instead. A hidden field, a minimum of 3 seconds, known spam links and WordPress's own sample commenter name are hard signals too.
Soft signals add points: links, sales-pitch words, texts from known spam campaigns, an alphabet the site does not use, random letters, name and address shapes that spam tools make, many messages from one connection or one address, a server or VPN network, a country outside the ones you serve. The rules were built and measured on 7,116 real spam messages and 314 real messages from client sites: 97% of the spam is caught on stored data alone, all 12 real booking enquiries in the test pass, and 2 of the 314 real messages are held for a person to deliver.
The plugin downloads the free iptoasn.com table once a week and searches it on disk, so it knows whether a sender writes from a home connection or from a hosting network. Visitor data never leaves your server. On a site behind Cloudflare, one Request Header Transform Rule sends the visitor's network and country with each form post; a per-site secret proves the headers came from your Cloudflare. The Status tab prints the rule.
WordPress's own "allow comments" option applies to new posts only, so an old "Hello world!" keeps collecting spam. One switch closes comments and pings on every post, refuses comment posts, pingbacks and trackbacks, and hides stored comments and the comment menus. The sweep then marks the waiting spam as spam in batches, from the admin or WP-CLI.
admin-ajax.php. The Status tab tells you if a security plugin blocks it.Updates are self-hosted: the plugin reads its Update URI header and checks https://websqu.ad/updates/ws-antispam.json. New versions show up in the standard WordPress updates screen.
wp ws-antispam backtest <file> — score stored messages (JSON lines or a WordPress export) with the rules.wp ws-antispam ip <address> — the network, country and datacenter flag of an address.wp ws-antispam table update / status — build the network table now, or show its state.wp ws-antispam sweep [--dry-run] [--all] — mark waiting comments that the rules catch as spam.wp ws-antispam comments off / on — switch comments off everywhere, or back.The Caught list keeps the sender's name, email, IP address, network and message for 30 days. The connection limits keep only scrambled (hashed) addresses for up to 7 days. Nothing goes to any other service. The plugin adds a suggested paragraph to the WordPress privacy policy guide. Uninstalling removes every table, option and file it created.
websquad — brandsquad OÜ, Estonia. Support: [email protected]