How to protect your contact form from bot spam
In short: an unprotected contact form will sooner or later be flooded by bots. The best approach combines an invisible method like Turnstile or reCAPTCHA v3 with a hidden honeypot field. That filters out most spam without making life harder for honest users.
Every public form eventually lands on the radar of bots that automatically fill in anything they find. The result is an inbox full of junk, and sometimes something worse, because the same bots probe forms for vulnerabilities. The good news is that you can filter them out without forcing customers to retype crooked letters.
Where the spam comes from
You are not being deliberately attacked. Bots crawl the internet and fill in every unprotected form, and the more popular your site engine, the more ready-made tools can do it. So filtering the inbox alone is not enough, you have to stop the spam at the source, on the site.
Invisible verification instead of the old captcha
A captcha with letters to retype discourages real customers too. Background solutions are much better: Cloudflare Turnstile or reCAPTCHA v3 assess a visitor's behaviour and let a human through without any clicking. We use Turnstile ourselves to protect our tools, and that is the model we recommend.
Add a honeypot
A honeypot is a hidden form field a human does not see, so they will not fill it, while a bot fills in everything. If the field is filled, we reject the message. It is a simple method that costs the visitor nothing and complements background verification nicely.
Validate data and limit submissions
Check field validity on the server, not just in the browser, and add a limit on submissions from one address so a bot cannot send hundreds of messages a minute. It is the same mechanism as defending against login attacks, applied to the form.
Why this is not just convenience
Form spam is not only a cluttered inbox. Bots try to inject code and use your server to send messages, which risks your domain landing on a blocklist and email deliverability problems. A secured form therefore also protects your reputation.
We can set it up
If your form is drowning in spam, we will configure protection so the customer notices nothing while bots bounce off a wall. See also what ongoing website care covers.