How Do I Stop Spam on My Website Contact Form?
Practical ways to stop contact form spam: honeypots, invisible CAPTCHA, filters and server checks that block bots without putting off real customers.

Short answer: Stop contact form spam with layers rather than one tool: a hidden honeypot field to catch dumb bots, a time check to reject instant submissions, an invisible challenge such as Cloudflare Turnstile or reCAPTCHA v3 for smarter bots, and simple content filtering for links and known spam phrases. Most small business forms go from dozens of junk messages a week to almost none with the first two layers alone, without making real customers solve a single puzzle.
Spam isn't just annoying. It buries genuine enquiries, trains you to skim your inbox, and can even get your domain's email reputation damaged if your form sends auto-replies to fake addresses. Let's fix it properly.
Understand who is spamming you
Not all spam is the same, and the right defence depends on the source:
| Type | What it looks like | Best defence |
|---|---|---|
| Simple bots | Gibberish, links, fills every field instantly | Honeypot plus time check |
| Smarter bots | Plausible text, runs JavaScript, mimics browsers | Invisible challenge (Turnstile, reCAPTCHA v3, hCaptcha) |
| Human spammers and sales pitches | "We can get you to page one of Google", offshore SEO and design offers | Content filters, polite form wording, blocking repeat senders |
| Targeted abuse | Floods of submissions from one source | Rate limiting and firewall rules |
Bots find forms by crawling the web looking for <form> tags and well-known plugin paths. Once your form is on a list, it gets hit repeatedly. That's why a site can go from no spam to fifty a day overnight.
Layer 1: the honeypot
A honeypot is an extra field that humans never see because it's hidden with CSS, but bots happily fill in because they fill in everything. If the field contains anything, the submission is silently discarded.
A few details that make honeypots work better:
- Give it a tempting name like
websiteorcompany_url, nothoneypot. - Hide it with CSS positioning rather than
type="hidden", which smarter bots skip. - Add
tabindex="-1"andautocomplete="off"so keyboard users and browser autofill don't trigger it accidentally. - Mark it
aria-hidden="true"so screen readers skip it. - Discard silently. Don't show an error, or the bot author learns what tripped it.
Cost to real users: zero. That's why it's always our first layer.
Layer 2: the time trap
A real person takes at least a few seconds to read and fill in a form. Many bots submit within a second of loading the page. Record when the form was rendered (in a hidden timestamp, ideally signed so it can't be faked) and reject submissions that arrive impossibly fast, say under three seconds. Also reject ones with a timestamp hours old, which suggests replayed requests.
Layer 3: an invisible challenge
When bots get smarter, add a challenge service. The modern ones mostly run invisibly, analysing browser signals and only showing a challenge to suspicious visitors.
- Cloudflare Turnstile: privacy-friendly, usually invisible, free tier available. Our usual choice.
- Google reCAPTCHA v3: invisible, gives each submission a score you act on. Sets Google cookies, which has privacy implications you should mention in your policy.
- hCaptcha: a privacy-focused alternative, sometimes shows image challenges.
The crucial detail many DIY setups miss: the challenge must be verified on the server. If the token is only checked in the browser, bots simply skip that step and post directly to your form endpoint. A challenge that isn't verified server-side is decoration.
Check current pricing and terms for each service, as free tiers and conditions change.
Layer 4: content filtering
Human spammers and sales pitches get through technical defences because they are real people. Simple rules catch most of them:
- Flag or reject messages containing more than one or two links. Genuine customers rarely paste URLs.
- Flag messages containing phrases like "SEO services", "guest post", "backlinks", "crypto" or "first page of Google".
- Reject messages written entirely in a script your customers wouldn't use, if that suits your market.
- Block repeat sender emails or domains you've seen spam from.
A softer touch: send flagged messages to a separate folder rather than deleting them, so you can glance at them weekly. That way a false positive never costs you a real job.
Layer 5: rate limiting and firewall
If one source sends dozens of submissions a minute, limit how many submissions an IP address can make in a period. Hosting on an edge network like Cloudflare also lets you block traffic from bad bot networks before it reaches your form at all.
A worked example: an electrician in Manchester
An illustrative electrician's WordPress site receives around forty junk messages a week: link spam, offshore marketing pitches and the occasional gibberish flood. The owner added a classic image CAPTCHA, which reduced spam a little but also cut genuine enquiries because customers on phones found it fiddly.
Here's the layered fix:
- Remove the visible image CAPTCHA.
- Add a honeypot field and a minimum time check. Gibberish spam disappears almost completely.
- Add Cloudflare Turnstile, verified on the server. The more convincing bot messages stop.
- Add a filter that moves messages with links or the word "SEO" into a "Review" folder.
- Add a line under the form: "For job enquiries only, please. We don't need marketing or SEO services." It won't stop determined pitches, but it reduces them.
Result: a near-empty junk folder, real enquiries flowing again and no frustrated customers.
Drowning in form spam?
Our Website Rescue service cleans up spam-plagued forms, fixes deliverability and gets real enquiries back into your inbox.
What most people get wrong
- Relying on one defence. Every single method has gaps. Layers cover each other.
- Making customers do puzzles first. Start invisible, escalate only if needed.
- Client-side only checks. If the verification isn't on the server, it's bypassable.
- Auto-replies to every submission. Spam bots use fake or stolen addresses, so your auto-replies go to strangers and can harm your sending reputation. Only auto-reply after the submission passes your checks.
- Publishing your raw email address everywhere. Scrapers harvest it. Use the form, or at least obfuscate the address.
- Deleting flagged messages unseen. Quarantine first, delete later.
- Ignoring an outdated plugin. Old form plugins are targeted heavily. Keep them updated or move to something lighter.
Accessibility matters here too
Traditional CAPTCHAs can lock out people with visual impairments or motor difficulties. Audio alternatives are often poor. That's another reason to favour invisible methods and honeypots, which have no impact on genuine users. Read more in our guide to website accessibility.
How to tell whether your defences are working
Don't just install protection and hope. Spend ten minutes a month checking three things:
- Volume: how many submissions reached your inbox, and how many were blocked or quarantined. A sudden spike suggests bots have found a way round.
- False positives: skim the quarantine folder. If a genuine customer landed there, loosen the rule that caught them.
- Genuine delivery: send yourself a real test enquiry from your phone, including a link if your customers sometimes send them, and confirm it arrives normally.
If your form service or plugin offers a log, keep it. A record of blocked submissions with timestamps helps you spot patterns, such as a burst of spam every night from the same network, which a firewall rule can then stop outright.
Our take
We have a firm opinion: your customers should never pay the price for your spam problem. Asking a homeowner with a burst pipe to identify traffic lights in nine blurry photos is a terrible first impression. Our forms use honeypots, time checks, server-verified Turnstile and smart filtering, so real people just type and send. It's one of those invisible bits of craftsmanship we care about.
Honest caveat: no defence is perfect. A determined human pitching SEO services will occasionally get through any form, and if you are being specifically targeted by a large attack, you may need professional security help beyond a website provider. Also, if your spam comes from a hacked site sending junk on your behalf, that's a different problem: see how to fix a hacked website.
Quick checklist
- Add a CSS-hidden honeypot field and discard anything that fills it.
- Reject submissions faster than a few seconds.
- Add an invisible challenge and verify it on the server.
- Quarantine messages with multiple links or spam keywords.
- Stop auto-replies to unverified submissions.
- Remove or obfuscate public email addresses.
- Test the form monthly to make sure real messages still arrive.
The bottom line
Contact form spam is solved by layering cheap, invisible defences: a honeypot, a time check, a server-verified challenge and simple content filters. Start with the methods that cost genuine customers nothing, escalate only if needed, and always keep a way to review what gets filtered. Your inbox should be full of jobs, not junk.
Frequently asked questions
Why am I suddenly getting so much spam from my contact form?
Once a bot network discovers your form, it gets added to lists and hit repeatedly, which is why spam often appears suddenly. Outdated form plugins with known weaknesses are particularly targeted. Adding a honeypot and an invisible challenge usually brings it under control quickly.
Does reCAPTCHA stop all spam?
No. It stops a lot of automated spam, especially when verified correctly on the server, but humans pasting sales pitches will still get through. It also uses Google cookies, so mention it in your privacy policy. Combining it with a honeypot and content filtering gives better results than relying on it alone.
What is a honeypot field?
It's a form field hidden from human visitors with CSS but visible to bots reading the page code. Bots tend to fill every field, so any submission with that field filled is quietly discarded. It costs genuine users nothing, which is why it's a great first line of defence.
Will spam protection block genuine customers?
Badly configured protection can, especially hard visual CAPTCHAs on mobile or overly strict keyword filters. Invisible methods like honeypots and Turnstile rarely affect real people. Sending flagged messages to a review folder rather than deleting them protects you from false positives.
Should I remove my email address from my website to stop spam?
Publishing a plain email address does attract scraper spam, so many businesses rely on a protected form and a phone number instead. If you want to show an email address, obfuscation techniques can reduce harvesting. Good filtering in your email account helps too.
Want a website that brings you customers?
Tell us what you do on WhatsApp and we will send a fixed quote and a free mockup.
Get my free mockupRelated guides
Our products
Website design near you
Website design in LondonWebsite design in New YorkWebsite design in TorontoWebsite design in GenevaWebsite design in PerthWebsite design in GothenburgWebsite design in ChicagoWebsite design in The HagueWebsite design in OttawaWebsite design in BrightonAll cities →
SiteDrum home · All guides · Sitemap · Contact us
More tech guides
- Why Is My Website So Slow? Common Causes and Fixes
- Do I Need a Privacy Policy on My Website?
- How Do I Check If My Website Is Mobile Friendly?
- How Do I Redesign My Website Without Losing SEO?
- How Do I Protect My Website From Hackers?
- What Is a CMS and Do I Need One for My Website?
- How Do I Choose a Good Domain Name for My Business?
- How Do I Update My Website Myself?