Documentation
Spam protection
WebForms scores every submission for spam before delivering it. Deterministic signals such as a honeypot and a time trap add up to a score, an AI classifier reads the message itself on every plan, and anything over the form's threshold is held for review instead of delivered. Held spam never counts against your monthly quota, cold sales pitches get a lane of their own, and every decision comes with a plain-language reason you can overrule.
Last updated
How scoring works
Every layer below produces a partial score between 0 and 1; they add up. Once the total reaches the form's threshold (0.6 on the default Balanced setting), the submission is quarantined: stored and visible in your inbox, but never delivered to a destination, and not counted toward your monthly quota. A few checks (a filled honeypot, a submission faster than the time trap allows, a failed captcha) reject outright, before anything is stored, regardless of threshold.
Either way, the sender always sees a normal success response. Returning an error to a rejected submission is how a bot learns what got it caught. Silence is the point.
Signals
- Honeypot field A field named _gotcha that a real visitor never sees or fills, hidden with CSS. A bot filling every field trips it instantly. Rejects outright.
- Time trap Set _start_time to a timestamp when the form renders. A submission completed in under ~2 seconds (configurable) is treated as scripted.
- Disposable email Checks the submitted email's domain against a list of throwaway-email providers. Adds to the spam score; it does not reject on its own.
- Blocked addresses, domains and keywords Per-form lists you maintain, on Pro and Agency: a submission from a blocked email address or sending domain is held, and content containing chosen keywords adds to the score. Block sender on the Spam page adds an address in one click.
- Link flood Many URLs packed into one field is a strong spam signal on its own.
- Origin mismatch If you've set an allowed-origins list for the form, a submission whose Origin header doesn't match adds to the score rather than being silently accepted.
- Empty or tiny content A submission with almost nothing in it (common with scripted probing) scores slightly higher.
- Sender reputation Submissions are tracked by sender identity (email/domain, never IP). A sender previously confirmed as spam by the AI classifier scores worse next time, for free, without another model call, and a sender whose mail to us has bounced is treated as suspect.
- Your corrections When you mark a held submission as not spam, that sender is trusted on your forms from then on; when you mark one as spam (or block the sender), their next submission is held. Your corrections apply to your workspace only and are never shared with other customers.
- Language Russian text with English product names mixes two alphabets, which is a classic obfuscation trick on an English form and completely normal on a Russian one. Tick the languages a form receives (Pro and Agency) and that signal is switched off for it.
- AI classifier A second opinion from a classifier that reads the message itself, on every plan including free. It runs on every submission the deterministic score has not already condemned, including ones that score zero, because content-only spam trips no other signal. Its verdicts feed sender reputation, so a repeat sender is caught without another call. Switch it off per form if no third party should see submission content.
- Captcha Turnstile, hCaptcha or reCAPTCHA v3, with your own keys: register your site with the provider, then save the site key and secret key in the form's spam settings (or as captchaSiteKey and captchaSecret through the API). The token in _captcha (or the provider's own field name) is verified server-side; reCAPTCHA v3 needs a score of at least 0.5. Until both keys are saved the CAPTCHA is not enforced.
How well does the AI classifier work?
We measured it on 22 September 2026, before switching it on for every plan, by running it over the 808 submissions WebForms had stored at that point. Median response time was 258ms (95th percentile 326ms), and no call failed. It agreed with 50 of the 51 submissions the deterministic filter had already quarantined, and it flagged 11 submissions that had been delivered as spam with at least 90% confidence.
None of those submissions had a human spam label, so these are agreement figures, not precision and recall. Quarantine exists for the cases it gets wrong: a real message it holds back is still stored in your inbox, where you can read it and reply.
Setting up a honeypot
Add a field named _gotcha (or your form's configured honeypot field name) and hide it with CSS, not type="hidden", which some bots skip.
<input type="text" name="_gotcha" style="position:absolute;left:-9999px" tabindex="-1" autocomplete="off" />
Setting up the time trap
Stamp a hidden field with the current time when the form renders, so the server can measure how long it took to submit:
<input type="hidden" name="_start_time" id="start-time" />
<script>
document.getElementById("start-time").value = Date.now();
</script>Configuring per form
Every signal is a toggle or a threshold in Form → Settings → Spam. Sensitivity, languages and the three blocklists are on Pro and Agency; the rest is on every plan. The same shape is writable from the write API:
curl -X PATCH https://api.webforms.to/v1/forms/frm_xxx \
-H "Authorization: Bearer wf_live_your_key" \
-H "Content-Type: application/json" \
-d '{
"spamConfig": {
"honeypot": true,
"timeTrapMs": 2000,
"captcha": "turnstile",
"captchaSiteKey": "0x4AAA...",
"captchaSecret": "0x4AAA...secret",
"blockDisposableEmail": true,
"sensitivity": "balanced",
"blockedEmails": ["sales@pushy-agency.example"],
"blockedKeywords": ["viagra", "crypto airdrop"],
"languages": ["ru"],
"allowedOrigins": ["example.com"]
}
}'Filtering sensitivity
On Pro and Agency, each form has one setting for how hard it filters. Balanced is the default, and what every Free form uses, and it is right for most forms. Relaxed only holds what is clearly spam (a quarantine threshold of 0.75), for forms where a missed enquiry costs more than an extra junk message. Strict holds anything doubtful (0.45), for forms that attract a lot of junk. Change it in the form's spam settings or as spamConfig.sensitivity through the API.
The Pitches lane
A polished cold pitch from an agency, an SEO seller or a supplier is not bot junk, but it is not an enquiry either. When the AI is confident a submission is one, it goes to the Pitches tab on the Spam page instead of your inbox: stored, not delivered and not counted against your quota. Release any you want and it is delivered within a minute. How confident the AI must be follows the form's sensitivity, and a sender you have released before is never held as a pitch again.
Reviewing quarantine
Quarantined submissions live alongside genuine ones in the dashboard, filterable by status, so nothing caught by a false-positive is actually lost. The Spam page has a review queue, with Spam and Pitches tabs, that lists each held submission with the reasons it was caught. Mark one as not spam and it moves to your inbox and is delivered to your destinations within a minute; it then counts toward your monthly allowance like any delivered submission, and that sender is trusted on your forms from then on. Block sender marks it as spam so that sender's next submission is held, and on Pro and Agency also adds the address to the form's blocklist. Anything that did reach your inbox can be marked as spam from the form's submissions list, and that sender is held next time. The Submissions API excludes them by default; pass status=quarantined to include them.
Get your endpoint
Free for 300 submissions a month. No card required.
Start free