A glowing blue android in profile under a starry sky
Willis Web Design / 01 of 08

Home / Guides / How To Stop Contact Form Spam Without Annoying Customers

Guides

How To Stop Contact Form Spam Without Annoying Customers

You can stop contact form spam without making customers pick out traffic lights. The trick is to stack several quiet checks that bots fail and people never notice: hidden honeypot fields, time traps, a background robot check, server-side validation and rate limits. This guide explains each layer and why picture puzzles cost you enquiries.

Why Picture CAPTCHAs Cost You Enquiries

The usual answer to form spam is a picture puzzle: click every square with a bus, or type the wobbly letters. It works against some bots, but it also puts a hurdle in front of every real customer. Someone on a phone, in a van, with poor eyesight or simply in a hurry may give up and call a competitor instead.

Picture puzzles have other costs too. Many load scripts from third parties, which can slow the page and may set tracking cookies that need consent under UK rules. Some are hard to use with screen readers. And modern bots and paid human solvers get past many of them anyway.

The better approach is layers of checks that people never see. Each layer catches a different kind of bot. Together they stop most spam while real customers just type their message and press send.

The Quiet Checks That Stop Most Bots

  1. 01

    Honeypot Field

    Add a field that is hidden from people but visible to bots in the page code, labelled something tempting like “website”. People leave it empty because they cannot see it. Simple bots fill in every field. If it has anything in it, reject the message quietly.

  2. 02

    Time Trap

    Record when the form was loaded, and check how long passed before it was sent. A person needs at least a few seconds to type a name and message. A bot submits almost instantly. Reject anything sent faster than a person could type, and anything with a stale or missing timestamp.

  3. 03

    Proof-Of-Work Robot Check

    The browser solves a small maths puzzle in the background before sending. It takes a moment for one visitor, but becomes expensive for a bot sending thousands. No pictures, no tracking cookies. The answer is checked on the server and each puzzle can only be used once.

  4. 04

    Server-Side Validation

    Check every field on the server, not just in the browser, because bots skip the browser. Is the email address shaped like one? Is the phone number plausible? Is the message a sensible length? Does it contain lots of links? Reject anything that fails.

Rejecting quietly matters. If the form tells a bot exactly why it failed, the bot’s author can adjust. Show real visitors a friendly message only when they have made a genuine mistake, such as a missing phone number.

Rate Limits And Other Server Defences

Some spam is sent by bots that pass the simple checks, or by people paid to fill in forms by hand. Server-side limits slow them down.

Limit Submissions Per Visitor

Allow only a few messages from the same visitor within a short window. A real customer rarely sends more than one or two. To respect privacy, the server can store a scrambled, salted version of the visitor’s IP address rather than the address itself, and delete it within a day.

Limit Total Messages Per Day

A cap on total messages protects your inbox and your email sending reputation if a bot finds a way through. Set it well above your busiest normal day.

Filter Content Sensibly

Messages packed with links, written entirely in another alphabet when you only sell locally, or containing known spam phrases can be held back. Be careful not to over-filter; a genuine customer might paste a link to a listing or a photo.

Send, Do Not Store

Send each enquiry straight to your inbox through a reliable email delivery service, and keep nothing on the website. There is then no database of enquiries for a hacker to steal, and less personal data for you to manage.

Hide Email Addresses From Harvesting Bots

A lot of spam does not come through forms at all. It arrives because your email address is written on your website, where bots can read it and add it to lists. Once an address is on those lists, it stays there.

  • Remove plain email addresses from every page, including the footer, the privacy notice and any PDFs.
  • Use a contact form as the main way to get in touch, with a phone number shown clearly beside it.
  • Use an “email us” button that builds the email link with a script only when clicked, so the address is never in the page source.
  • Avoid simple tricks like writing “name at domain dot co dot uk”. Bots learned to read those long ago.
  • Protect your domain with SPF, DKIM and DMARC, so spammers cannot send fake emails that look like they came from you. The guide to SPF, DKIM and DMARC explains how.

Making The Form Easy For Real Customers

Stopping spam is only half the job. The form also has to be quick and pleasant for the people you want to hear from. A few rules help:

  • Ask only for what you need to reply: name, phone or email, and a short message. Add fields specific to your business only where they save a phone call.
  • Use the right field types so phones show a number pad for phone numbers and an email keyboard for email.
  • Make fields and buttons large enough to tap easily on a phone.
  • Show a clear thank-you message, and tell people when you will reply.
  • Test the form every few weeks, and after any website or email change. Check the spam folder too.

Some businesses benefit from a slightly longer quote form, for example asking for a preferred date, a postcode and the size of the job. A bespoke build with a quote calculator can go further and work out a price as the visitor answers. The extra fields are fine as long as each one helps you give a better quote. The page on turning more visits into enquiries explains how to balance form length against the number of people who finish it.

How Willis Web Design Builds Contact Forms

Every form on a Willis Web Design site uses the layered approach in this guide: a honeypot, a time trap, a privacy-friendly proof-of-work robot check with no picture puzzles and no tracking cookies, server-side checks on every field and rate limits. Nothing typed into the form is stored on the website; enquiries go straight to your inbox.

Forms come as standard on managed website plans from Business upwards, and are rebuilt as part of any website redesign. If you have a WordPress site drowning in spam, WordPress repair and care can replace the form and tidy the rest. Pair it with business email with SPF, DKIM and DMARC so replies reach customers.

Before a new site goes live, form tests are part of the website launch checklist. To check your current site, run the free website audit. I'm Mark Willis, and I have thirty years of experience building forms and the systems behind them. See the pricing page or call 07901 233441.

Questions

Questions About How To Stop Contact Form Spam Without Annoying

Why am I suddenly getting so much form spam?

Bots scan the web for forms and submit to any they find, often in bursts. A form that was quiet for months can be found and added to a spam list overnight. Forms that only check things in the browser are easiest to abuse, because bots skip the browser entirely. Adding server-side checks and a honeypot usually stops most of it straight away.

Will a honeypot field stop all spam?

No single check stops everything. A honeypot catches the many simple bots that fill in every field, which is often the bulk of the junk. Smarter bots and people paid to send spam by hand can get past it. That is why it works best stacked with a time trap, a background robot check, rate limits and server-side validation of every field.

Are picture CAPTCHAs bad for accessibility?

They can be. Picture puzzles are hard for people with poor eyesight, and audio versions are hard for people with hearing loss. They are also awkward on small phone screens and for older visitors. Some send data to third parties and set tracking cookies. Quiet checks that run in the background avoid all of this while still blocking most bots.

What is a proof-of-work robot check?

It asks the visitor’s browser to solve a small maths puzzle in the background before the form is sent. For one person sending one enquiry, it takes a moment and they never see it. For a bot trying to send thousands of messages, the work adds up and becomes costly. The answer is then checked on the server before the message is accepted.

Should I store form enquiries on my website?

It is safer not to. Every enquiry stored in a website database is personal data you must protect, and a hacked site can leak it. Sending the enquiry straight to your inbox and keeping nothing on the site reduces your risk and your duties under UK GDPR. Willis Web Design forms work this way: nothing typed into them is stored on the website.

Is it safe to show my email address on my website?

It invites spam. Bots harvest plain email addresses from web pages and add them to mailing lists. Use a contact form instead, or a button that builds the email link only when someone clicks it, so the address never appears in the page source. Good SPF, DKIM and DMARC records also help stop others sending fake emails in your name.

Next step

See where your website stands, free.

Run a free test of your current site, or call me for a straight answer about what you need.