← Back to knowledge base

Contact form spam: what helps without a CAPTCHA?

Your contact form works, but between the real enquiries there are messages about cheap sunglasses, “guaranteed” Google rankings or a link to an unknown site. Annoying, and you risk missing a real enquiry.

The first reflex is often a CAPTCHA: the “I’m not a robot” box or puzzles with crossings. That works, but it is rarely the best first step. This article covers which measures to take first, what they do and where their limits are.

Why not a CAPTCHA straight away?

A CAPTCHA service works, but it comes at a price:

  • A third party on your website. Most CAPTCHAs load code from an external service. Have someone check whether your privacy statement and cookie settings need to change.
  • A hurdle for real visitors. Someone asking a quick question on their phone drops out faster when faced with a puzzle.
  • Accessibility. Not every CAPTCHA is equally usable for everyone, for example with a screen reader.

That is why it makes sense to start with measures the visitor does not see.

Five measures without a CAPTCHA

1. A honeypot

You add an extra field that is hidden from people. A simple spam bot fills in every field it finds, including the hidden one. If it is filled in, that can point to a bot.

Limit: it is a signal, not proof. Browser autofill or a form-filling tool can also fill such a hidden field, and then you would reject a real enquiry. So test your form with autofill, with the keyboard only and with a screen reader. Smarter bots also recognise hidden fields and leave them empty.

2. A timing check

A person needs a few seconds to fill in a form. A bot often submits it within a fraction of a second. The form can pass along how long someone took. Suspiciously fast? Then the message gets a label.

Limit: the browser reports that time itself, so a smart bot can wait or make up a value. And someone without JavaScript sends no time at all. Treat it as a signal, not as proof.

3. Limits per sender

A limit such as “at most five messages per hour from the same IP address” stops a bot that submits your form dozens of times in a row. A maximum message length also blocks huge walls of text.

Limit: spam that comes from many different addresses, or sends only one message per address, is not caught by this. And the other way round: several real visitors can share the same IP address, for example on the same office network or through their mobile provider. So do not set the limit too tight.

4. Checking content and sender

A lot of form spam contains a link: “See our offer at…”. A link in the name field is odd. A link in the message itself, on the other hand, is perfectly normal in website enquiries: customers often refer to their own website. So a link only becomes suspicious in combination with other anomalies, such as a suspiciously fast submission.

Another example: someone enters an address on your own domain in the email field, while you and your colleagues never fill in the form yourselves. Note: this is about the submitted address, not the sender of the notification you receive. That notification normally comes from an address on your own website domain, with the submitted address as the reply-to address.

Limit: none of these signals is proof on its own. That is why you combine them.

5. Label instead of delete

That is why it is wise not to delete suspicious messages automatically, but to label them, for example with [Possible spam] in the subject. A mail rule then sorts them into a separate folder. You still see everything, but real enquiries stand out faster.

What you had better not do

  • No automatic reply to the address that was filled in. Anyone can enter any email address in your form. If your website automatically sends a mail there, someone can abuse your form to send spam to others. Let the form mail only your own inbox, with the submitted address as the reply-to address.
  • Do not only check in the browser. JavaScript checks are helpful for the visitor, but a bot can skip them. The real check belongs on the server.

And if that is not enough?

Still a lot of spam after these steps? Then a CAPTCHA is the next step. Choose a variant that gets in the way as little as possible and have your privacy statement and cookie settings reviewed too. I am not a lawyer: for the legal side, ask a specialist for advice.

Getting spam that seems to come from your own email address, and not through your form? Then it is probably something else: spoofing. Read SPF, DKIM and DMARC: mail via your own domain.

In short

Start with invisible measures: a honeypot, a timing check, limits and a check on links and sender. Label suspicious messages instead of deleting them. A form never becomes completely spam-free, but you block a lot of junk and spot real enquiries faster.

Want me to review your contact form or add these measures? Send me your question and I will look at what is already on your form.

Getting spam through your contact form? Send me your question and I will look at your form with you.

Ask your question
← Back to knowledge base