Loading FormAck
Skip to content

← All posts

crossed out, then stamped

Five things people believe about site keys

Open any website that uses FormAck, view the page source, and there it is: a site key, something like pk_live_…, sitting in plain sight.

People find it and worry. That's a reasonable instinct. On most systems, a key in the open is a key that's been lost. So here are the five things we hear most often, crossed out and corrected.

Number one

myth

If someone sees my site key, my form is compromised.

It was in the page source. Anyone could copy it. Surely that's a leak?

fact

The key is meant to be public.

On a static website, everything in the page is readable: the key, the address, the field names. So the key only says which form this is. It proves nothing about who is sending.

Number two

myth

With my key, a bot can post to my form from anywhere.

Paste the key into another website, or a script, and start sending.

fact

It's only accepted from your domains.

You register the domains your form lives on. Browsers can only submit from those. The same key on somebody else's website gets turned away at the door.

Number three

myth

So a bot just fakes the Origin header.

Skip the browser, send raw requests, and claim to come from the right website.

fact

The header passes. The ticket and captcha don't.

Every real visitor gets a fresh, single-use ticket when the page loads, tied to that browser. Every submission also needs a captcha pass, which we check on our server with your secret and your hostname. A script with a faked header has neither. A saved request can't be replayed either: that ticket was already used.

Number four

myth

I should hide my captcha secret in the JavaScript too.

If the key goes in the page, the other settings probably go there as well.

fact

Secrets never touch a browser.

Your captcha secret and signing secret live on our server, encrypted. They're never sent to a browser, and after you save them, they're never shown again, not even to you. The only thing in your page is the public key.

Number five

myth

If the key is safe, spam can't get in.

Lock down the key and the problem is solved.

fact

The key is only the first of seven checks.

Nobody can stop a real person typing spam into a real browser. That's why a message that passes the door still gets read: a hidden trap field, rate limits, and a spam score with reasons. Doubtful messages wait in a review queue instead of landing in an inbox.

So what is actually secret?

Here's the whole picture in three lines. It's also the one to show a colleague who has just found your key and is quietly panicking.

Site keyIn your page. Public. Says which form.

SecretsOn our server. Encrypted. Never sent to a browser.passed

ProofEarned by every visitor: a single-use ticket and a captcha pass.passed

Should I rotate my key if I see it copied somewhere?

You can, but a copied key on its own can't submit to your form. What matters is that your allowed domains are right and your captcha is set up. Check those first.

Is any of this different for Webflow, Framer or WordPress?

No. Any site that can add a script tag works the same way: public key in the page, proof checked on our side. If you'd rather post from your own backend, there's a signed API for that.

fact-checked by Ack