In short: add the layers in order and stop when the spam stops. A honeypot (one hidden field) catches most bots for free and costs your visitors nothing. When bots start leaving hidden fields empty, add Cloudflare Turnstile, which is free and usually invisible. Keep IP blocklists, country restrictions and keyword rules for a sender or pattern you have actually seen.
Every contact form on a static site gets spam sooner or later, usually within days of going live. This post explains why, which layer stops which kind of bot, and how to add each one, with the exact HTML. The examples use BootForm , the form backend we build, but the honeypot and Turnstile work the same way with any backend that supports them.
Why static site forms get spam
A static site's form posts to a public address that anyone can send to. The form's action is in your page's HTML, so a bot that reads the page knows where to post, and after that it doesn't need your page at all.…