Spam Form Submissions: How to Stop Them
Most contact form spam comes from automated bots that scan the web for forms and fill them in. You can stop the vast majority by combining a few quiet defences: a hidden 'honeypot' field that only bots fill in, an invisible CAPTCHA or challenge such as Cloudflare Turnstile or reCAPTCHA, limits on how often one source can submit, and filters for spammy content like multiple links. Avoid heavy-handed puzzles that annoy real customers. The aim is to block bots while keeping the form easy for people.
- Most form spam is automated, so defences that detect bots work better than ones that test humans.
- Honeypot fields are invisible to people and catch many simple bots at no cost to real users.
- Invisible or low-friction challenges block most of the rest without annoying customers.
- Content and rate filters help with persistent spam that slips past other defences.
- Never let spam filtering silently delete real enquiries; check your spam folder regularly.
Why contact forms attract spam
Spam bots crawl the internet looking for forms. When they find one, they fill it in automatically, often with advertising, links to dodgy websites, SEO offers or phishing attempts. Your business doesn't need to be a target; any publicly visible form will eventually be found.
Some spam is sent by real people paid to fill in forms, which is harder to stop. But the vast majority is automated. That's helpful, because bots behave differently from people, and those differences can be detected without making the form harder for genuine customers.
Spam is more than an annoyance. It wastes time, buries real enquiries, and if your form sends automatic replies, spammers may use it to send messages to other people via your email address, which can damage your email reputation and cause your legitimate emails to land in spam.
Start with a honeypot field
A honeypot is a form field hidden from human visitors using code, so they never see or fill it in. Bots, which read the underlying form rather than the visual page, often fill in every field they find. If the hidden field has anything in it, the submission is rejected as spam.
Honeypots are free, invisible to customers and catch many unsophisticated bots. Many form plugins and builders include them as an option. They don't stop everything, as smarter bots learn to skip hidden fields, but they're an excellent first layer with no downside for real users.
Make sure the hidden field is properly hidden, including from screen readers, so it doesn't confuse visitors using assistive technology. Label it in a way that won't trick autofill tools into completing it.
- Add a hidden field that real users never see
- Reject submissions where it's filled in
- Hide it from screen readers too
- Avoid labels that browsers might autofill
Use a low-friction challenge
CAPTCHAs used to mean squinting at distorted letters or clicking on traffic lights. Modern alternatives work largely in the background, analysing how a visitor behaves and only challenging those who look suspicious. Google's reCAPTCHA and Cloudflare Turnstile are common options.
These tools block much of the spam that gets past a honeypot. Turnstile, in particular, is designed to avoid visual puzzles for most visitors. Both are free for typical small business use, though terms and features change, so check current details.
Consider privacy. These services process visitor data to decide whether they're human. Your privacy notice should mention them, and you may need to consider cookie consent depending on the tool and setup. Check the provider's documentation and ICO guidance for your situation.
Rate limiting and timing checks
Bots often submit forms far faster than any person could, sometimes within a second of the page loading. A timing check rejects submissions that arrive too quickly after the page was opened. It's another invisible defence that catches many basic bots.
Rate limiting restricts how many submissions can come from one source in a set period. If the same address tries to submit dozens of times an hour, it's almost certainly a bot. Many hosting providers and services like Cloudflare can apply rate limits or block known bad sources before they even reach your form.
Be careful not to set limits so strict that they affect genuine users, such as several staff members at one office sending enquiries, or someone resubmitting after a typing mistake. Start gently and tighten if spam continues.
- Reject submissions made within a few seconds of page load
- Limit repeated submissions from the same source
- Use your host or CDN's bot protection
- Avoid limits that block genuine repeat users
Filter what gets through
Some spam will still slip through. Content filters catch common patterns: messages full of links, certain words, foreign scripts you'd never receive from genuine customers, or email addresses from disposable domains. Many form tools and email providers include spam scoring.
Be cautious with keyword blocking. Blocking a word like 'SEO' might stop a lot of spam but could also block a genuine customer asking about SEO. Prefer approaches that flag or move suspicious messages to a separate folder rather than deleting them outright.
Check the spam folder regularly, at least weekly. A genuine enquiry wrongly flagged as spam is a lost customer. If you notice real messages being caught, adjust the filters.
Don't make it hard for real customers
Every extra hurdle on a form loses some genuine enquiries. Visual puzzles, mandatory account creation, long lists of required fields or confusing error messages all reduce the number of real people who get in touch. The goal is to block bots, not test your customers' patience.
Layered, invisible defences usually work best: a honeypot, a background challenge, timing checks and gentle filtering. Together they stop most spam without visitors noticing anything. Only add visible challenges if spam continues at a level that genuinely causes problems.
Offer alternatives as well. A phone number and WhatsApp button alongside the form give people other ways to reach you, and these channels are less affected by bot spam. For many local businesses, they're the preferred contact method anyway.
- Keep the form short
- Avoid visible puzzles where possible
- Show clear, friendly error messages
- Offer phone and WhatsApp alongside the form
Stop your form being used to send spam
If your form sends an automatic confirmation email to whatever address is entered, spammers can abuse it to send messages to other people from your domain. Make sure automatic replies don't include the content submitted, and consider whether you need them at all.
Check that your form sends email properly authenticated from your domain, using settings like SPF, DKIM and DMARC. This helps your legitimate messages reach inboxes and makes it harder for others to spoof your address. Your email provider or web developer can check these settings.
Keep form plugins and website software updated. Older versions can have security holes that let attackers misuse forms in ways beyond simple spam. Regular updates close these gaps.
When to get help
If spam keeps getting through despite basic measures, or if real enquiries are going missing, it's worth getting help. Sometimes the form needs rebuilding with better protection, or email settings need fixing so messages arrive reliably.
Look at the bigger picture too. A sudden surge in spam can sometimes signal a security problem, or that your form is being targeted specifically. Checking server logs and settings can reveal what's happening.
KB Studio builds sites on Cloudflare's network, which helps filter bad traffic, and sets up forms with spam protection that stays out of real visitors' way. The Care Plan at £49/mo includes security updates and priority WhatsApp support. See our hosting and care page.
Common questions
Why am I suddenly getting so much form spam?
Bots find forms by crawling the web, so once yours is discovered it may be added to lists and targeted repeatedly. A sudden increase often means it has been picked up by a new spam network. Adding a honeypot, a background challenge and rate limiting usually brings it back under control.
Will a CAPTCHA put customers off?
Old-style puzzles can, especially on phones. Modern options like Cloudflare Turnstile or invisible reCAPTCHA work mostly in the background and only challenge suspicious visitors, so most real customers never notice them. Start with invisible defences and only add visible challenges if spam is still a serious problem.
What is a honeypot field?
It's a hidden field in your form that real visitors never see. Bots that read the form's code often fill in every field, including the hidden one. When that field contains anything, the submission is rejected. It's a simple, free defence that doesn't affect genuine users at all.
Could spam filters block real enquiries?
Yes, if they're too aggressive. Keyword blocks and strict rules can catch genuine messages. Prefer filters that move suspicious submissions to a separate folder rather than deleting them, and check that folder regularly. Offering phone and WhatsApp contact options also gives customers another route if something goes wrong.
Do I need to mention spam protection in my privacy policy?
If you use a service like reCAPTCHA or Turnstile that processes visitor data, it's good practice to mention it in your privacy notice. Depending on the tool and how it's configured, you may also need to consider cookie consent. Check the provider's documentation and ICO guidance for current requirements.
Want this done for you?
Websites from £995, live in 7 days, and you own everything. Free quote within 24 hours.