Anti-spam for forms: how it works
Anti-spam protects every public form (contact, quote, booking, callback, newsletter, registration, comments, checkout, sign-in) from robots and junk. Each submission gets a spam score; suspicious inquiries and comments are set aside in a quarantine instead of being deleted, and only clear abuse is refused.
Lesson 4 of 12 · How it works
How it works
Each form carries a hidden field and a timer: a robot that fills the hidden field or sends the form within a few seconds is caught.
A built-in browser puzzle is solved by the visitor's browser and needs no outside service. In the default mode (adaptive) it is only required from suspicious senders and during an attack.
The score rises for too many links, spam phrases, text in a script that does not fit the language of the page, duplicates and too many submissions from one address, email or phone.
Registrations and newsletter sign-ups from throw-away email services are refused; contact and quote requests from them go to the quarantine.
From the quarantine score (50 by default) an inquiry or comment goes to the «Spam quarantine Messages and comments from the website that look like spam are not deleted. They are set aside in the quarantine and nobody is notified about them. More words in the glossary» on «Security» and nobody is notified. From the refusal score (90 by default) a submission is refused outright.
In the quarantine «Not spam» puts a message back as a normal inquiry and «Block sender» refuses that sender from now on.
A third-party captcha (Turnstile, hCaptcha or reCAPTCHA) can be added, on every public form or only while strict mode is on. After 3 failed sign-ins the sign-in form asks for the puzzle as well.
Where to find it
- System → Security → Security center (Spam quarantine)
/admin/security - Settings → Anti-spam
/admin/settings/antispam
Settings that change it
- Settings → Anti-spam → Challenge & captcha
/admin/settings/antispam?section=challenge - Settings → Anti-spam → Content rules
/admin/settings/antispam?section=content - Settings → Anti-spam → Scores & velocity
/admin/settings/antispam?section=scores - Settings → Anti-spam → Captcha keys (your own secret key)
/admin/settings/antispam?section=captchaKeys
Checklist
Before you move on, check that you can:
- Open System → Security → Security center (Spam quarantine)
- Each form carries a hidden field and a timer: a robot that fills the hidden field or sends the form within a…
- A built-in browser puzzle is solved by the visitor's browser and needs no outside service.
- The score rises for too many links, spam phrases, text in a script that does not fit the language of the…
- Registrations and newsletter sign-ups from throw-away email services are refused; contact and quote requests…
Tips and common mistakes
- A customer says a message never arrived: look in «Spam quarantine» first and press «Not spam».
- Too much real mail is caught: raise the quarantine score or remove a phrase from the spam keywords. Too much junk gets through: lower the score or set the puzzle to always.
- A captcha provider needs its public site key and its secret key (Settings → Anti-spam → Captcha keys — your own keys, never the platform's). Without both, leave the provider on none.