Fix errors & stop spam
How do I stop spam on my contact form?
By the FormToMail team · Checked against official sources · Updated
Stop most contact form spam with layers: a hidden honeypot field (bots fill it, people don't), filters for links and duplicates, per-IP rate limits, and a bot check such as Cloudflare Turnstile when bots get past those. An AI filter catches the human-written sales pitches that pass all of them.
| Layer | Stops | Visitor friction | FormToMail |
|---|---|---|---|
Honeypot (_gotcha) | Simple bots | None | Free |
| Link count / duplicate filter | Link spam, repeated blasts | None | Free |
| Rate limit per IP | Floods | None | Free |
| Cloudflare Turnstile | Most automated bots | Usually invisible | Free (your Turnstile keys) |
| AI spam check | SEO pitches, human-written spam | None | Pro |
Add a honeypot
<input type="text" name="_gotcha" style="display:none" tabindex="-1" autocomplete="off">Add Turnstile
- Create a Turnstile widget in your Cloudflare dashboard for your domain.
- Add Cloudflare's script and the widget
<div class="cf-turnstile" data-sitekey="…">inside your form. - Paste the secret key into your FormToMail form settings; tokens are then verified on each submission.
Quick answers
My contact form gets hundreds of spam submissions a day, what do i do?
Add Turnstile on top of the honeypot; if spam is human-written, turn on an AI filter.
Spam bots are filling my form with gibberish names, how to stop them?
Honeypot plus Turnstile stops nearly all automated gibberish.
Can I block form submissions with links in the message?
FormToMail flags submissions with more than 3 links as spam.
How do ai spam filters work on contact forms?
A language model reads the submission and classifies it as a real message or spam; FormToMail Pro runs one on each submission and keeps flagged ones in the dashboard.
Can someone abuse my form endpoint to send spam from my account?
They can only send to you (the address is fixed per endpoint), and rate limits and filters apply.
What to do next
Get an endpoint with honeypot, link, duplicate and rate-limit filtering built in.
Get your form endpointSources
Checked: . Prices, limits and features of other services change: confirm current values at the official links above. Product names belong to their owners; we are not affiliated with them.