Stop contact form spam

Most form spam comes from scripts that find a form and post to it. You can stop nearly all of it without making real visitors solve a puzzle. The methods below are layered: each catches what the one before misses.
  1. 1

    Add a honeypot: a field hidden from people that bots fill in. Anything with it filled is discarded.

  2. 2

    Check timing: a form sent a second after the page loads was not typed by a person.

  3. 3

    Filter content: links in a name field, known spam phrases and repeated identical messages.

  4. 4

    Limit the rate from any one connection, and list the sites your form may be sent from.

  5. 5

    Only if spam still gets through, add a CAPTCHA.

html
<!-- The honeypot. Hidden from people, tempting to bots. -->
<input type="text" name="_gotcha" style="display:none" tabindex="-1" autocomplete="off">

Good to know

  • FormTango does the first four for every form automatically. You only add the hidden field.
  • Hide the honeypot with CSS, not type="hidden": many bots skip hidden inputs but fill in text ones.
  • Messages caught as spam are kept in a Spam view, so a real one can be rescued.
  • You can bring your own Cloudflare Turnstile, hCaptcha or reCAPTCHA key in a form's settings.

What you get

  • Every submission saved in an inbox you can search and export.
  • An email for each one, with the visitor's address as the reply-to.
  • Spam filtering without making visitors solve a puzzle.
  • Problems? See troubleshooting.

Related guides

HTML form to emailContact form without a backendSubmit a form without redirectingHTML file upload formA form backend for AI coding agents

Last reviewed November 19, 2026.