Put a password on a static site, with nothing to build.
A switch on the site, a password you choose, and nothing of the site is served to anybody who does not have it. No encryption step in your build, no script in your page, and no ciphertext handed to strangers to guess at.
The check happens before the file does
The password is verified at the edge that serves the site. A visitor without it gets a prompt and nothing else — not the HTML, not an image, not a file they could open in a second tab.
Your files are not touched
What is stored is exactly what you uploaded. Turning the password off later serves the same bytes again — there is no encrypted copy to rebuild and no step to undo.
Changing it locks everyone out at once
Sessions are signed against the stored credential, so a new password ends every visit that was opened under the old one. No list of sessions to hunt through.
What this is not
- ✕Not per-person access. One password for the site, shared by everyone you give it to. Nothing here can tell you which of them visited, and revoking one person means changing it for all of them.
- ✕Not encryption at rest that hides the files from us. We serve them, so we can read them. Anything that must be unreadable by the host has to be encrypted before it is uploaded, by you.
- ✕Not a way to stop someone keeping a copy. A visitor with the password can save every file. This controls who gets in, not what they do afterwards.
- ✕Not a door a webhook can open. The password covers the site's functions too, so an internal tool's API routes stay behind it. A service posting a webhook from outside cannot sign in, so routes that receive one belong on a public site.
- ✕Not available on the free tier. It is one of the things paid tiers add — the pricing page lists which ones, read from the same table the server checks.
Every other way to do this ships the site to the attacker first.
Search for this and you find build-step tools — they encrypt your HTML so the browser decrypts it with a password typed into the page. They exist because static hosts generally cannot check anything, and they are honest about the cost: the encrypted file is served to everybody, so guessing happens on somebody else's machine at their own pace, with no rate limit and nothing to notice it. They work on any host. That is the trade being made.
- ✓Nothing leaves until the password is right. A wrong one gets a prompt and a message; the site's bytes are never part of that response.
- ✓The stored credential is a salted PBKDF2 hash. Reading the store does not hand anybody the password, and the iteration count is stored per site so an old site keeps verifying after the default is raised.
- ✓The session cookie cannot be planted by another site. It carries the
__Host-prefix, so a browser refuses it from any domain but the one serving the site, and it is signed rather than merely secret. - ✓A private site is kept out of shared caches. Responses go to the visitor marked not to be stored, so a copy is not left somewhere in between.
Turning it on
Three things, and none of them touches the folder you published.
- 1
Publish the site as usual
Drop the folder. The password is a property of the site rather than of a build, so it can go on before or after the files do.
- 2
Set a password in the site's settings
One field. It is hashed on the way in and never stored as you typed it, which also means nobody here can read it back to you — a forgotten one is replaced, not recovered.
- 3
Send the link and the password
Separately, ideally. Anybody with both sees the site; anybody with only the link sees a prompt that says nothing about what is behind it.
The cheapest tier that includes it is Starter, at $5 / month. What else each tier adds →
Questions
Is this strong enough for something confidential?
It is a gate on a site, not a vault. Nothing is served until the password is right, and the password itself is stored only as a salted PBKDF2 hash — but one password is shared by everyone you give it to, we can read the files you uploaded, and anyone who gets in can save them. For a draft, a client review or an unlisted document that is the right shape. For regulated or genuinely secret material, it is not.
How is this different from StatiCrypt or PageCrypt?
Those encrypt the page and ship the ciphertext to every visitor, who decrypts it in the browser. That works on any host, and it means an attacker can download the encrypted file once and try passwords offline forever. Here the check runs at the edge before a byte of the site is sent, so there is nothing to take away and attack. The trade is the other way round: theirs works anywhere, this one works here.
Do visitors need an account?
No, and they cannot have one. There is one password per site, entered on a plain page served before the site, and a correct entry sets a signed cookie so the rest of the visit does not ask again. No per-viewer accounts, and no way to tell which of them it was.
Can the people reviewing it leave comments?
Yes, on plans that include comments, and that is the one place a name comes in: reading still needs only the password, but writing a comment also needs a Drop2Run sign-in, so you know which reviewer said what. They pin each comment to the heading or sentence they mean, and you answer on the page — or let your AI agent read the threads and fix what they point at.
What happens when I change the password?
Every session issued under the old one stops working immediately. The cookie is signed against the stored credential, so changing it invalidates what everybody is holding — which is what you want the moment somebody you sent the old password to should no longer have it.
Can a search engine or a scraper see the page behind it?
The page a crawler reaches is the password prompt, which is served noindex, and the site behind it is never sent without a correct password. A private site is also kept out of every shared cache on the way to the visitor, so nothing of it is left lying in one.
Publish it first. Decide who sees it after.
A folder goes up without an account. The password is a switch on the site afterwards.