Put a contact form on the open web and bots will find it. The messages all look about the same: an offer for SEO services, a link to something you shouldn't click, or a name field full of random letters. A business owner who gets twenty of these a day starts skimming the inbox, and that's how a real inquiry gets missed.
The usual fix is a puzzle: click every square with a traffic light. It works, but it makes every customer prove they're human before they can ask about your prices. Zuko, a form analytics company, has a good roundup of what that friction can do to form completions. I would rather put the work on the bots.
Three layers bots trip over
On client forms, I add defenses that real visitors never see.
- A honeypot field. This is an extra input hidden with CSS, with a label like "Leave this blank." People never see it, but many bots fill in every field they find. If it has a value, the submission gets flagged. I also mark it `aria-hidden`, take it out of the tab order and turn off autocomplete. That way screen readers and password managers skip it too.
- A time check. When the page loads, the server issues a signed timestamp. A person needs at least a few seconds to type a name and a message. A script submits almost instantly. If the form comes back too fast, it gets flagged.
- A quiet CAPTCHA. Tools like Cloudflare Turnstile, Friendly Captcha and Google's reCAPTCHA v3 run checks in the background. Most visitors see nothing at all. Only suspicious traffic gets a challenge.
No single layer catches everything, but each one is cheap to add, and together they stop most of the junk. Many form builders already include the first one. Gravity Forms, for example, has a built-in honeypot setting.
Fail quietly, and keep the evidence
Two habits matter as much as the tools.
First, a flagged submission gets the same thank-you message as a real one. If the bot gets an error, its operator can learn what to change. If it gets a normal response, they learn nothing.
Second, I don't delete flagged messages. They go to a separate folder. For the first few weeks after launch, I check that folder to make sure no real person landed there by mistake, like someone with very fast autofill. If the filters are working, that folder is all spam and the inbox is all people.
A good spam filter catches bots without asking customers to prove anything.