Contact FormsHigh-traffic sites fighting spam

Contact Form with Spam Protection

A contact form hardened against spam with a honeypot field, ready to pair with hCaptcha or Cloudflare Turnstile.

  • Honeypot field
  • Captcha-ready
  • Responsive
  • Accessible

Fields included

  • Name
  • Email
  • Message
  • Honeypot

Works great with

How to Use This Template

  1. 1Sign up for a free Static Forms account to get your API key.
  2. 2Copy the HTML code above and save it as an .html file.
  3. 3Replace YOUR_API_KEY with your actual API key.
  4. 4Deploy the file to your website and start receiving submissions in your inbox.

Frequently asked questions

How does this contact form stop spam?

It ships with a hidden honeypot field that real users never see. Static Forms also applies built-in spam filtering on every submission, and you can enable hCaptcha or Cloudflare Turnstile for stronger protection.

How do I add hCaptcha or Turnstile to this form?

Drop the widget script into the page and place the widget div above the submit button. Static Forms verifies the token automatically. See our security docs for the exact snippet.

Is a honeypot enough on its own?

A honeypot stops most low-effort bots. For persistent spam, layer on a captcha challenge, which this template is structured to accept without markup changes.

Will spam protection hurt my form conversion rate?

The honeypot is invisible and frictionless for real users. Invisible captcha modes like Turnstile add no visible challenge in the common case, so conversion stays high.

Start receiving form submissions today

No backend code needed. Sign up, grab your API key, and you are ready to go.