How to Stop Spam From Your Website Contact Form

To stop spam from your website contact form, combine a hidden honeypot field, an invisible bot check such as Cloudflare Turnstile or Google reCAPTCHA, and a few server-side rules like blocking links in the message box. Together these stop most automated junk without making real customers solve picture puzzles. Never fix spam by removing your form.
Your contact form used to send you job requests. Now it sends you offers for SEO services, fake invoices and messages in languages you don't speak, sometimes dozens a day. The real leads get buried, and one day you miss a customer because you stopped checking. Here is how to clean it up without making the form harder for real people.
Why does my contact form get so much spam?
Most form spam comes from automated programs, called bots, that crawl the web looking for any form they can fill in. They don't care what your business does. A public form with no protection is an easy target, and once your page is on their lists, the volume tends to grow. A smaller share is sent by people paid to paste sales pitches into forms by hand, which bot checks can't fully stop.
What are the best ways to stop form spam?
The best approach layers a few quiet checks so bots fail and real visitors notice nothing. Here are the main options, from simplest to strongest.
| Method | How it works | Effort for customers | Good to know |
|---|---|---|---|
| Honeypot field | A hidden field humans never see; bots fill it in and get rejected | None | Free and simple, but smarter bots skip it |
| Invisible bot check | A script scores each visit and flags likely bots | Usually none | Turnstile and reCAPTCHA both offer this |
| Server-side rules | Reject messages with links, certain words or too-fast submissions | None | Needs someone to set it up on your site |
| Visible CAPTCHA puzzle | Visitor solves a puzzle or ticks a box | High | Can cost you real leads, so use it last |
| Email confirmation | Visitor confirms by email before you get the message | High | Too much friction for a quote request |
Add a honeypot field
A honeypot is an extra form field hidden from people with code. A human never sees it, so it stays empty. Many bots fill in every field they find, so any message with that field filled is thrown away. Most form plugins and website builders have a honeypot setting you can switch on.
Use an invisible bot check
These tools watch how a visit behaves and decide whether it looks human, usually without showing a puzzle.
Cloudflare's Turnstile documentation describes it as a CAPTCHA alternative that can run on any website without sending your traffic through Cloudflare. Its recommended "managed" mode only shows a checkbox when a visitor looks risky, and Cloudflare says it meets the WCAG 2.2 AA accessibility standard.
Google's reCAPTCHA v3 guide explains that it returns a score for each request, where 1.0 is very likely a good interaction and 0.0 is very likely a bot. Google suggests a default threshold of 0.5 and says scores can differ on a new setup while it learns your real traffic. As of November 2026, that page is marked deprecated and points to Google Cloud's newer documentation, so check which version your form plugin uses.
Add server-side rules
The check should happen on the server, not only in the browser, because bots can skip code that runs on the page. Common rules include rejecting messages with web links (real customers rarely send them), blocking forms submitted within a couple of seconds of the page loading, and limiting how many messages one visitor can send in an hour.
Should I use a visible CAPTCHA puzzle?
Only as a last resort. Every extra step on a form gives a real customer a reason to give up, especially someone filling it out on a phone between jobs. Start with the invisible methods, then add a visible check only if spam keeps getting through.
How do I make sure real leads still reach me?
Test the form after every change, because anti-spam settings can block real messages too. A simple checklist:
- Send a test message from your phone and from a computer after each change.
- Check your spam folder for real leads at least weekly.
- Use a sending address on your own domain for form emails, so your inbox trusts them.
- Keep a copy of every message in your website's dashboard or form tool, not only in email.
- Show your phone number next to the form so anyone who has trouble can call instead.
Our guide to adding a click-to-call button shows where your number should appear on mobile.
What should I not do?
Don't remove the form or replace it with only an email address. Posting a plain email address on your page tends to attract its own spam, and a form is easier for customers than opening their email app. Also don't reply to spam messages or click their links. Some are phishing, the same kind of trick behind the fake domain renewal invoices many owners receive.
Frequently asked questions
Is a honeypot field enough by itself?
It stops a lot of simple bots and costs nothing, so it is a good first step. Pair it with an invisible bot check if spam keeps coming.
Will a CAPTCHA hurt my form conversions?
A visible puzzle can make some real visitors give up. Invisible checks like Turnstile's managed mode or reCAPTCHA v3 avoid most of that, because most visitors never see a challenge.
Why do I still get some spam after adding protection?
Some messages are typed by real people paid to send pitches, and no bot check stops a human. Server-side rules, like rejecting links, filter out much of what is left.
Can spam hurt my website?
Spam messages themselves usually don't harm your site, but links in them can lead to scams. Delete them without clicking, and keep your form software up to date.
If your form is quiet for the opposite reason, with no messages at all, check our list of signs your website is hurting your sales. To see where a contact form fits among the pages a local business needs, read our guide to small business website pages, or see the HVAC website guide for one trade.
Related: Click-to-call buttons · What pages should a small business website have? · Domain renewal scams and fake invoices