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
- Message
- Honeypot
Works great with
How to Use This Template
- 1Sign up for a free Static Forms account to get your API key.
- 2Copy the HTML code above and save it as an
.htmlfile. - 3Replace
YOUR_API_KEYwith your actual API key. - 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.
Related templates
Simple Contact Form
The simplest possible contact form: name, email, and message. Copy the HTML, add your API key, and you are done.
Contact FormsMinimal Contact Form
A clean, minimal contact form with subtle shadows and a white card. Perfect for professional sites.
Support & RequestsSupport Ticket Form
A help-desk form with priority, subject, and description fields to route issues to your team.
Start receiving form submissions today
No backend code needed. Sign up, grab your API key, and you are ready to go.