Security

How to protect your contact form from bot spam

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.

Related articles

Frequently asked questions

Why does my form get so much spam?

Because bots automatically crawl the internet and fill in every form they find. You are not being deliberately attacked, your form is simply public and unprotected. The more popular your site engine, the more ready-made bots can fill it in.

Does a captcha put customers off?

The old captcha with retyping letters can discourage people. That is why invisible solutions like Cloudflare Turnstile or reCAPTCHA v3 are better, they assess traffic in the background and do not make an honest user retype anything. The customer notices nothing while bots are filtered out.

What is a honeypot?

It is a hidden form field, invisible to a human but visible to a bot. A human will not fill it because they cannot see it, while a bot fills in everything. If the field is filled, you know it is a bot and the message can be rejected. It is simple and effective.

Is form spam dangerous?

Usually it is just a cluttered inbox, but it can be worse. Bots probe forms for vulnerabilities, try to inject code and use your server to send messages, which can end with your domain on a blocklist. So it is worth securing the form, not just filtering the inbox.

Related services

Free security audit

Do not wait for the site to go down

Send us your website address through the form. We will check it for threats and performance, and you get concrete recommendations plus a free security quote.

Request a free audit →

No obligation · Contact via the form · Reply within 1 business day

Looking for a fresh start? We will build your site from scratch, fast and secure. See the MP WebSolutions offer.