Every form post that reaches me goes through seven checks. It happens in well under a second, so nobody ever sees it.
This is the slow version. Seven short poems, one for each check, written on the quiet afternoons when the bots take a break. Under each one is a plain note, for anyone who prefers their security without syllable counting.
one
Right website
Your key is public
but my door opens only
for the sites you named
Your site key sits in your page source, where anyone can read it. That's fine. Browsers can only submit from the domains you registered, so a copied key on someone else's website gets nowhere.
two
Ticket
Page loads, ticket drops
fresh and single-use, one ride
replays find it torn
When your page loads, the visitor's browser picks up a fresh ticket, tied to that browser. Each ticket works once. A script that skips the page has no ticket. A saved request sent again carries a ticket that's already been used.
three
Human
A small puzzle passed
I check it on my own side
with the site's secret
Captchas (Turnstile or reCAPTCHA) only count if someone checks the answer properly. I verify every pass on our server, with your captcha secret and your hostname. A pass made for another website doesn't fit.
four
Trap untouched
An empty field waits
no person ever sees it
bots fill it with joy
Your form carries an invisible field. People can't see it, so they leave it empty. Bots that fill in every field they find fill that one too, and their submission goes straight to the spam bin.
five
Not flooding
Ten thousand knocking
the door counts each IP's turn
people still get in
Rate limits work per IP address and per site. They're roomy for real people, who send one form and get on with their day. A machine sending hundreds in a burst gets told to slow down.
six
Not salesy
Links, shouting, BUY NOW
I don't delete, I just hold
you decide, one click
Every message gets a spam score with reasons: links, spam phrases, shouting, text repeated across forms. Doubtful messages wait in a review queue and no email goes out until you approve. Nothing is deleted on a hunch.
seven
Reply safe
Thank-yous have a cap
your words never echo back
bounced names stay quiet
The thank-you email can't be turned into a weapon. Each address gets a limited number of auto-replies per day. The thank-you never repeats what the visitor typed, so nobody can hide an advert in it. Addresses that bounced are skipped.
Afterword
Seven checks is not the same as zero spam. Nobody can stop a real person typing a sales pitch into a real browser. That's why the sixth poem ends with you, not me. When a message looks doubtful, it waits, and a person decides.
The other six checks run every time, on every submission, and the real people never notice them. That's the point. A good gatekeeper is mostly invisible.
ack