SquareByteDigital Services

Knowledge base · Websites

Contact forms that don’t attract spam (and don’t lose leads)

Contact forms have two ways of failing. The obvious one: they fill up with spam. The quiet one, and the more expensive: real customers fill them in and nobody ever sees the message. I’ve seen forms broken for months without anyone noticing.

The short version: use invisible spam protection (a honeypot plus a privacy-friendly check like Cloudflare Turnstile), keep the form short, send enquiries to an inbox someone watches, send the customer a confirmation, and test the form every month.

Stopping spam without annoying people

  • A honeypot field: a hidden field real people never see. Bots fill it in, and those submissions are dropped. Free, invisible, surprisingly effective.
  • An invisible human check: tools like Cloudflare Turnstile verify visitors in the background, usually without puzzles. Avoid “click all the traffic lights” challenges where possible: they frustrate customers and are an accessibility problem.
  • Rate limits: block repeated submissions from the same source in a short time.
  • Simple filters: drop messages full of links or in scripts your business never receives.
  • Don’t publish an unprotected form-to-email script that anyone can use to send mail through your server.

Not losing real leads

  • Send to a watched inbox, not a former employee’s address or an account nobody checks.
  • Make sure the email gets delivered: forms that send “from” the customer’s address often land in spam. Send from your own domain with SPF, DKIM and DMARC set up, and use the customer’s address as the reply-to.
  • Send the customer a confirmation (“Thanks, we’ll reply within one business day”) so they know it worked.
  • Show a clear success message on the page, and a helpful error if something fails, with another way to reach you.
  • Test it monthly: fill it in yourself and check it arrives. Put a reminder in your calendar.

Make it easy to fill in

  • Ask only what you need: name, email or phone, and a message. Every extra field loses people.
  • Use proper labels and input types, so phones show the right keyboard (see your website on a phone).
  • Say what happens next and how quickly you reply.
  • Offer alternatives: a phone number and email address are still welcome.

Privacy

A form collects personal information, so say how you’ll use it, keep it secure, and don’t add people to your newsletter unless they ticked a box saying so (see CASL).

Every site I build has spam-protected forms that are tested before launch. Checking yours is part of every digital check-up.