Articles · Website upkeep
How to stop spam from your website contact form
By Armstrong Websites. Published . Updated .
To stop spam from your contact form, add layers that block automated programs without making real customers work. Start with a honeypot field, which is a hidden field only a program fills in. Add a quiet CAPTCHA such as Cloudflare Turnstile or Google reCAPTCHA. Then turn on a spam filter that reads each message. Two of these three are enough for many small business sites.
No setup blocks everything. The goal is a short pile of junk and no lost customers.
Know the two kinds of form spam
Form spam comes from two sources. Each needs a different fix.
Automated programs. These are often called bots. They scan the web for forms and fill them in by the thousand. The messages push pills, loans, fake invoices, or links to other sites. Bots cause most of the volume.
People. A person types or pastes a sales pitch into your form. The usual topics are SEO services, web design, and business loans. A CAPTCHA does not stop a person, because a person can pass it.
Look at your last twenty spam messages. If most are nonsense or packed with links, bots are the problem. If most read like sales emails, people are.
Turn on the tools your platform already has
Check your form settings before you add anything new. Most platforms include spam protection, and it is sometimes switched off.
Squarespace, Wix, and Shopify forms include built-in spam checks. Look in the form settings or the site settings for words like “spam,” “CAPTCHA,” or “bot protection.” Menu names change, so search the platform’s help pages for “form spam” if you do not see it.
On WordPress, the form plugin holds these settings. WPForms, Gravity Forms, Contact Form 7, and others each have a spam or anti-spam section. Open it and see what is on.
Add a honeypot field
A honeypot is a form field that people cannot see. The site hides it with code. A real visitor leaves it empty, because they never see it. A bot reads the page code, finds the field, and fills it in. The form then discards the message.
Visitors do nothing extra, so a honeypot costs you no leads. Many form tools have a simple switch for it. Turn it on first.
A honeypot stops simple bots. Smarter bots skip hidden fields. That is why you add a second layer.
Add a quiet CAPTCHA
A CAPTCHA is a test that tells people and programs apart. The old kind made visitors pick out traffic lights or type bent letters. Real customers dislike those, and some give up.
Newer tools run in the background. Most visitors see a small badge or a single checkbox, or nothing at all. Three common ones are Google reCAPTCHA, Cloudflare Turnstile, and hCaptcha.
The setup follows the same pattern for each.
- Create an account with the CAPTCHA provider.
- Add your website’s domain name.
- Copy the two keys the provider gives you. They are usually called a site key and a secret key.
- Paste both keys into your form tool’s CAPTCHA settings.
- Send a test message to confirm the form still works.
Pick a version that does not show puzzles unless a visitor looks suspicious. Some of these tools set cookies or collect data about visitors. Mention the tool in your privacy policy.
Use a filter that reads the message
A content filter checks what each message says and where it came from. It compares the message against known spam.
On WordPress, Akismet is the common choice, and many form plugins connect to it. It is free for some personal sites and has a paid plan for business sites, so check the current terms. Other anti-spam plugins do a similar job.
A filter catches some human spam too, because sales pitches repeat the same phrases across many sites.
Filters make mistakes. Set the filter to hold spam in a folder for a while and not delete it at once. Check that folder each week at first. A real quote request marked as spam costs you more than ten junk messages do.
Block the patterns real customers never use
Simple rules cut a lot of junk. Many form plugins let you set them.
Links. A customer asking about a fence repair rarely includes a web link. Block or flag messages that contain more than one link.
Keywords. Build a short block list from your own spam. Use phrases you see again and again in junk. Keep the list tight. A broad word can block a real customer.
Speed. A person takes time to fill in a form. A bot does it in a second or two. Some tools reject forms sent too fast.
Language or alphabet. If every customer writes to you in English or French, flag messages in other alphabets for review.
Start with flagging, not blocking. Move a rule to blocking after you see it catch only junk.
Do not post a bare email address
Programs also collect email addresses printed on web pages. An address typed as plain text on your contact page will reach spam lists in time.
That is a reason to keep a form, not to remove it. A form lets customers reach you without showing every program your address.
If you want to show an address as well, use one made for the public, such as an “info” address. Keep your personal address off the site. Your email provider’s spam filter then handles what comes in.
Keep the form easy for real people
Every block you add can stop a customer too. Guard against that.
Never add a puzzle to every visit. Never ask visitors to solve a math question. Keep the form short, since extra fields do nothing to stop bots.
Test the form after each change. Send a message from a phone and from a computer. Confirm it arrives. How to set up a contact form that reaches you has a full test routine.
Keep a phone number on the same page. If the spam tools block someone by mistake, that person can still call.
Handle the spam that gets through
Some junk will still arrive. Deal with it in a safe way.
Do not click links in a spam message. Do not open attachments. Do not reply, even to say “stop.” A reply tells the sender your address works.
Watch for messages built to scare you. Common ones claim your site uses a stolen photo, that your domain is about to expire, or that your site has errors. They ask you to click a link or pay a fee. How to spot an SEO scam email covers the usual signs.
Mark junk as spam in your form tool if it has that button. That trains the filter.
Review the setup twice a year
Spam changes. A setup that works today may leak later.
Twice a year, count the junk that reached your inbox in the past month. Check the held folder for real messages. Update your form plugin and your CAPTCHA settings. What is website maintenance and what does it include? lists the other checks to run at the same time.
If form spam keeps getting through and you want help finding the gap, reach us through the contact page.
Read next
How often should you update your business website?
Update facts the day they change, check the site once a month, and review every page once a year. Here is a simple schedule a small business can keep.
How to check your website for broken links
Check a small site by clicking each link by hand, then use Google Search Console or a link checker to find the rest. Fix each one with an edit or a redirect.
How to keep your business email out of the spam folder
Send from your own domain, add SPF, DKIM, and DMARC records, and email only people who expect to hear from you. Here is how to set each one up.