How do I stop spam on my website contact form?
Start with checks real visitors never see, then add an invisible challenge if bots still get through. How I keep form spam out of your inbox and CRM.
On this page
Start with checks real visitors never see: a hidden honeypot field, a minimum time before the form can be sent, and server-side rules that reject link-stuffed messages. Then add a challenge such as Google reCAPTCHA, verified on the server. That is what I use by default on the contact forms I build. Finally, make sure spam never reaches your CRM.
Tired of sorting spam from real leads? Send a note through my contact form or book a 30-min call, and I will show you where the spam gets in.
Why is my contact form getting so much spam?
Three sources produce almost all of it:
- Bots posting straight to the form. A bot does not need to load your page. It finds the address your form sends to and posts directly to it, thousands of times. Anything that only runs in the browser never sees these submissions.
- Copies of your form. Scrapers save the form's fields and replay them later, from many addresses.
- People pasting pitches. These are real humans sending SEO offers, lead lists and "partnership" messages. They pass every bot test, because they are not bots.
Each source needs a different fix, which is why one plugin rarely solves the whole problem.
What stops bots without annoying real visitors?
Start with checks a real visitor never notices.
A honeypot field
Add a field that is hidden from people but present in the page code, with a name that looks tempting, such as "website". Real visitors never see it, so they leave it empty. Many bots fill every field. If the honeypot arrives filled in, discard the submission quietly. Do not show an error that tells the bot what it did wrong.
A time check
Record when the form was loaded and when it was sent. A person needs a few seconds to type a name and a message. A submission that arrives a moment after the page loaded is almost certainly automated.
Server-side filtering
On the server, reject messages that are obviously not inquiries. Signs include several links in a short message, known spam phrases, or an email field that is not a valid address. Keep the rules simple and log what they reject.
Rate limiting
Limit how many submissions one address can send in a short window. This stops a bot from hammering the form, and it costs real visitors nothing.
These four checks cost nothing to the people you want to hear from. They also run on the server, so a bot posting straight to the form address still meets them.
Should I add a CAPTCHA?
Yes, as the next layer. Choose one that does not make people solve puzzles.
Google reCAPTCHA v3 runs in the background. Google's docs say it returns a score from 0.0 to 1.0 for each request without asking the user to do anything, and that your server decides what to do with that score. Google suggests 0.5 as a starting threshold. This is what I use by default on the contact forms I build.
Cloudflare Turnstile is another option built to verify visitors without making them solve puzzles.
The detail that matters most is the same for both: the token must be checked on your server. Cloudflare's server-side validation guide calls this step mandatory and says each token is valid for 300 seconds and can be used once. Google's reCAPTCHA v3 docs say tokens expire after two minutes. They also recommend checking that the action name in the response matches the form.
If the widget runs in the browser but nobody verifies the token on the server, the CAPTCHA does nothing against bots that post straight to the form. That gap explains a lot of "I added reCAPTCHA and still get spam" complaints.
How do I keep spam out of my CRM?
Filter before the CRM step, not after. If your form feeds a CRM and an automatic reply, spam that gets through creates junk contacts and sends your welcome email to bots.
- Run the spam checks first, and only pass clean submissions to the CRM.
- Tag borderline submissions as "possible spam" for a person to review, instead of deleting them.
- Never send an automatic reply to anything flagged as spam.
My post on speed-to-lead automation shows the clean path from form to CRM to fast reply, and website booking to calendar and CRM covers the same idea for bookings. If you are on HubSpot's free tier, my post is HubSpot's free CRM enough covers what it includes.
What about people sending sales pitches by hand?
No tool stops them completely, because they are real people using the form as intended. Make them cheap to handle instead. Set an inbox rule for common phrases. Add a "not a lead" status in your CRM so they do not count in your pipeline, and do not reply. Keep these out of your lead reports so your numbers stay honest.
One more rule for every layer: log what gets rejected and look at it now and then. Strict rules can block a real inquiry, and a lost lead costs more than a few spam emails.
A layered setup, in order
Add one layer at a time, and check the results before adding the next.
| Layer | What it stops | Cost to real visitors |
|---|---|---|
| Honeypot field | Simple bots that fill every field | None |
| Time check | Bots that submit instantly | None |
| Server-side filtering | Link-stuffed and obviously fake messages | None, if the rules are sensible |
| Rate limiting | Bots that hammer the form | None |
| reCAPTCHA v3, verified on the server | Most automated submissions that pass the first four | None for most visitors |
| CRM filtering and a "not a lead" status | Whatever gets through, before it pollutes your pipeline | None |
Start with the first four layers. Add the challenge layer if bots still get through, and let the CRM layer keep your reports clean.
How do I know it is working?
Keep two simple counts for a few weeks after any change:
- Spam that still reaches you. If it is mostly human sales pitches, the bot layers are working.
- Rejected submissions in the log. Skim them weekly. If a real inquiry ever shows up there, loosen the rule that caught it.
Every so often, send yourself a test inquiry from a phone and a laptop. Confirm it reaches the inbox and the CRM. Spam filters fail quietly, and a broken contact form looks exactly like a slow month.
How do I start?
Send me your site address and tell me roughly how much spam you get and where it lands. I will show you where it gets in and what I would add first. I quote in USD after a call, and my hours overlap US mornings and IST evenings. More about me is on my homepage.
Send a note through my contact form or book a 30-min call.
FAQ
- What is a honeypot field on a contact form?
It is a hidden field that real visitors never see or fill in. Bots fill every field, so a form that arrives with the honeypot filled can be discarded quietly.
- Does a CAPTCHA stop all form spam?
No. It stops many bots, but only if the token is checked on your server. People pasting sales pitches will still get through, so add filters as well.
- Why do I still get spam after adding reCAPTCHA?
Often the token is not verified on the server, so bots post straight to the form endpoint and skip it. Server-side checks close that gap.
- Will spam protection block real leads?
It can if the rules are too strict. Start with invisible checks, log what gets rejected and review it, so a real inquiry is never lost silently.
Sources
- Google for Developers: reCAPTCHA v3
- Cloudflare Docs: Turnstile
- Cloudflare Docs: Turnstile server-side validation
- All checked 26 Nov 2026 (IST).
Want a written scope and custom USD quote before work starts? Book a 30-min call or send a note through my contact form.