Most form spam comes from bots, and the best defences are ones your customers never see. Start with the invisible layers, filter instead of deleting, and treat CAPTCHAs as the last step.
In this article 9 sections
Most contact form spam comes from bots that find forms automatically and fill in every field. The best defence is a few layers that real customers never notice: a hidden honeypot field, checks on the server, limits on how often one source can submit, and a “possible spam” folder instead of a delete button. Add an invisible challenge like Cloudflare Turnstile or Google reCAPTCHA only if junk still gets through, and keep puzzle CAPTCHAs as a last resort.
The goal has two halves, and the second matters more: keep rubbish out of your inbox, and never lose a real enquiry along the way.
Why your form gets spam
Your form isn’t being singled out. Bots crawl the web looking for anything with a text box and a submit button, then post ads, scam links and gibberish into it. Some spam is typed by people paid to do it, which no filter stops completely.
Every fix below is a trade-off between blocking bots and annoying humans. A form that blocks all spam but also blocks one customer in fifty is losing you work. If enquiries have dropped since someone added spam protection, why your website isn’t getting enquiries covers how to test the whole path.
Start with the layers nobody sees
A honeypot field
A honeypot is an extra field hidden from people but present in the page’s code. Humans never see it, so they leave it empty. Simple bots fill every field they find. If the hidden field comes back filled in, the submission is junk. The W3C’s note on the inaccessibility of CAPTCHA(opens in a new tab) lists honeypots among the alternatives that don’t ask anything of the user.
Hide it properly, so it doesn’t catch the wrong people:
- Hide it with CSS rather than leaving it visible
- Hide it from screen readers and take it out of the keyboard tab order
- Turn off autofill on it, so a browser doesn’t fill it in for a real customer
- Give it a label like “Leave this empty”, just in case someone does reach it
A timing check
Note when the form was loaded and when it was sent. A person needs at least a few seconds to type a name and a message. A submission that arrives a second after the page loaded wasn’t typed by a person.
Checks on the server
Anything in the browser can be skipped by a bot that posts straight to your server, so the server has to check everything again:
- Required fields are present and not absurdly long
- The email address and phone number look like real ones
- The message doesn’t contain HTML, and doesn’t contain a pile of links (real enquiries rarely include more than one)
- The same message hasn’t arrived several times in the last few minutes
Rate limits
Limit how many submissions one source can make in a short time. Three in a minute is a person fixing a typo. Fifty is a bot. Slow it down or hold its messages for review, rather than blocking outright. The same idea protects login pages, which website security basics covers.
Filter, don’t delete
When something looks suspicious, send it to a “possible spam” folder in your inbox or admin panel instead of throwing it away. Check that folder once a week. A filter that silently deletes will eventually delete a customer, and you’ll never know it happened.
Be careful with keyword lists. Blocking every message that mentions “SEO” or “crypto” seems sensible until a customer asks about either.
CAPTCHA options and their trade-offs
If the invisible layers aren’t enough, the next step is a service that checks for bots on your behalf.
Google reCAPTCHA
reCAPTCHA v3 returns a score for each request(opens in a new tab) without asking the visitor to do anything. Scores run from 0.0 (very likely a bot) to 1.0 (very likely a good interaction), and Google suggests starting with a threshold of 0.5 and adjusting it to your traffic. Since April 2026, Google’s release notes(opens in a new tab) describe reCAPTCHA as part of a wider suite called Google Cloud Fraud Defense. Its billing page(opens in a new tab) lists a free tier of up to 10,000 assessments per calendar month per organisation, which covers most small business forms. The reCAPTCHA FAQ(opens in a new tab) notes that it sets a cookie, and that you may hide its badge only if you show the reCAPTCHA branding in the form instead.
Cloudflare Turnstile
Turnstile(opens in a new tab) works on any website, without routing your traffic through Cloudflare. It runs checks in the background and usually shows no puzzle, though it can show a checkbox when it’s unsure. Cloudflare says it doesn’t access, store or send form entries. Its free plan(opens in a new tab) covers up to 20 widgets per account.
The trade-offs
- Accessibility. The W3C note is blunt: traditional CAPTCHAs exclude many people with disabilities, and audio versions are a poor substitute. Score-based checks are much better, but when one falls back to a challenge, a customer on an old phone or using a screen reader can get stuck. Test your form with a keyboard alone.
- Privacy. A third-party check runs a script from another company on your page and looks at how the visitor’s browser behaves. Mention it in your privacy policy. Website legal requirements in Australia covers what that policy needs to say.
- Dependence. If the script fails to load, some setups block the form completely. Decide what should happen in that case, and test it.
- Not a complete fix. People paid to send spam pass CAPTCHAs easily. The W3C note concludes there’s still no single, ideal solution.
Never put a raw email address in the page
Bots scrape plain email addresses from web pages and add them to spam lists. Under Australia’s Spam Act, businesses can’t use or supply lists made with address-harvesting software(opens in a new tab), but the people running harvesters overseas don’t care.
Give people a form, a phone number and a messaging option instead. A WhatsApp button on your website is one quick, low-spam way in. If you must show an email address, expect it to attract junk and keep your filtering tight.
Don’t let your form send spam for someone else
Some forms email a copy of the message to whatever address was typed in. Spammers love these: they type a stranger’s address and their ad as the message, and your website sends it from your domain. That damages your domain’s reputation, and your own email starts landing in spam. Send customers a fixed confirmation with no copy of their message, or none at all. Setting up business email on your own domain properly helps your real messages get delivered.
What not to do
- Block whole countries blindly. You’ll block overseas clients, Australians travelling, expats and anyone on a VPN, while bots happily run from servers anywhere, including in Australia. If you ever restrict by location, do it on the form only, watch the results, and offer another way to get in touch.
- Make a puzzle CAPTCHA your first line of defence. It costs you real customers before the cheaper layers have had a chance.
- Rely on checks in the browser alone. Bots skip them.
- Add extra required fields to deter bots. They deter people far more.
- Delete suspected spam with no record. Hold it for review instead.
A checklist for this week
- Send yourself an enquiry from your phone and check it arrives, and how long it takes.
- Look at last month’s spam. Is it the same message, from the same kind of source, at the same time of day?
- Add a honeypot field and a timing check.
- Make sure the server validates every field and limits repeat submissions.
- Set up a “possible spam” folder and put a weekly reminder in your calendar.
- Replace any plain email addresses on the site with a form, phone number or messaging button.
- Only then, if junk still gets through, add Turnstile or reCAPTCHA, and test the form with a keyboard and a screen reader.
Frequently asked questions
Will a CAPTCHA stop all spam?
No. It reduces automated spam, but people paid to send spam can solve CAPTCHAs, and some bots get through anyway. Layers work better than any single tool.
Is Google reCAPTCHA still free?
At the time of writing (December 2026), yes for most small sites. reCAPTCHA is now part of Google Cloud Fraud Defense, and its free tier covers up to 10,000 assessments per calendar month per organisation. Check the billing page if your traffic is unusually high.
Does a honeypot field hurt accessibility?
Not if it’s hidden properly. Hide it from screen readers, take it out of the tab order, turn off autofill, and label it “Leave this empty”. Then no real visitor ever meets it.