Spam Protection Best Practices
Start with a quiet check like Honeypot, then add protection based on what gets through. Captchas help prevent automated submissions. Spam screening services and AI Spam Analysis help when unwanted messages still reach the final submission. Change one setting at a time so you can tell what helped and spot legitimate entries that were flagged.
Setup
Start with built-in protection
Find Honeypot and JavaScript Test under Freeform → Settings → Integrations → Spam Blocking. Confirm Honeypot is enabled on the form. Use JavaScript Test if your form already depends on JavaScript and you can require it from every visitor.
Choose a captcha for the form
- For a low-interaction check, consider Cloudflare Turnstile, Friendly Captcha, or reCAPTCHA with a score-based key. Lite and Pro also offer Captcha.eu.
- For a visible check, use an hCaptcha or reCAPTCHA checkbox. In Lite and Pro, Question lets you write your own prompts and accept multiple answers.
- For a server-rendered form, Snaptcha provides an invisible check through its Craft plugin. The Freeform integration is available in every edition.
Configure the provider in Freeform → Settings → Integrations → CAPTCHAs, then enable it in the form builder. Check which domains the provider allows and use its dedicated setup guide for credentials and failure behavior.
Screen submissions that still get through
- Use keyword blocking or email address blocking for patterns you recognize. Start with a specific phrase or domain you have seen in spam. Review the matching syntax and starter lists before adding broad rules.
- In Freeform Lite or Pro 5.19.1+, try Akismet, CleanTalk, or OOPSpam on a form receiving unwanted messages. Review what each service receives before enabling it. OOPSpam lets you tune the score threshold per form.
Screen human-written spam
For spam that reads like a legitimate inquiry, AI Spam Analysis is our first choice in Freeform Pro. It uses the context of the fields you select and applies instructions you write for that form. For example, a design studio could tell it to flag unsolicited offers to sell lead lists while allowing questions about hiring the studio, even when both messages mention marketing.
Connect an AI provider, start with a single form, and give it examples of what to flag and what to allow. Freeform records why each flagged entry was classified as spam. Review those reasons in the Spam Folder and adjust your instructions before enabling it on more forms.
Decide what happens to flagged submissions
- Enable the Spam Folder if you want to review flagged entries and recover legitimate submissions. Entries discarded while the folder is disabled cannot be recovered.
- Choose Spam Protection Behavior. Simulate Success shows the usual confirmation, so review the Spam Folder regularly. Display Errors helps you troubleshoot why a submission was rejected.
- Review Failure Behavior separately for the captcha. Choose Display Error Message when the visitor can retry the challenge. Use the spam-folder option with Use Spam Folder enabled when you want to review rejected submissions.
- In Lite or Pro, set automatic spam retention to a period that gives your team time to review flagged entries. Purged entries cannot be restored.
Test from the visitor’s perspective
- Submit a normal entry while signed out. This exercises spam checks even if the logged-in bypass is enabled. Confirm the submission reaches its expected destination.
- On a test form, trigger the controls you enabled. Try an incorrect answer for Question or a temporary keyword rule. Confirm whether Freeform shows an error or saves the entry in the Spam Folder, according to your settings.
- Repeat on each page that embeds the form and after an upgrade or caching change. For cached forms, check that responses use fresh CSRF tokens. Keep Snaptcha forms outside shared page caches so visitors get current tokens.
- For headless forms, confirm that custom frontends submit the current security metadata and named captcha responses. The React and Vue guides explain how to enable the supported client extensions.
Review results and tune one control at a time
Check the Spam Reasons after launch or a configuration change. If a legitimate submission was flagged, use the reason to identify the rule or integration that caught it. Approve the entry if you want Freeform to resume its delivery.
If you see a sudden traffic spike, check whether requests are concentrated on a specific form or route before applying an edge rate limit or challenge. Freeform’s form submission throttling counts submissions separately for each form across all its visitors, so choose a limit that can accommodate legitimate bursts.
Express setup
Confirm Honeypot is enabled
Confirm Honeypot is enabled on each public form you protect.
Review and test flagged submissions
Enable the Spam Folder if you plan to review flagged entries. Submit a normal entry while signed out and check the folder after a test rejection.