Static Host UK

Put a Password on Your Whole Site

A client preview, a launch that isn't ready, a staging copy: one switch puts every page behind a password and keeps search engines out.

By , founder and sysadmin of Static Host UK

I'm Axel Segebrecht. I build privacy-first platforms, advise small businesses on AI governance, and create free tools for the neurodiverse community.

Some sites need to exist before anyone should see them: a redesign waiting for the client’s sign-off, a launch page before the announcement, a staging copy of the live site. Any site we host can go behind a password with one switch, free.

Turning it on

Open the site, go to Settings, find Password protection and press Turn on password protection (password protection documentation).

We generate the password and the site is protected straight away, on every address it answers on: its .my.statichost.uk address and every custom domain you have added. Every visitor is asked for the password before they see anything.

A password you’re meant to hand out

The panel shows the username and the password, with a separate copy button for each, so each pastes cleanly on its own. Most credentials are shown once and hidden. This one exists to be given to a client, a colleague or a reviewer, so you can come back and read it again whenever you like.

Generate a new password replaces it, and anyone still using the old one is locked out at once. Use it when a review is over or someone should no longer have access.

Out of search results

A crawler that can’t get past the password can’t index your pages, and we also tell search engines not to index the site while protection is on. That makes it the switch to use while a site is being built.

Turn protection off in the same panel and the site is public immediately. The password is kept, so switching protection off and on again doesn’t strand anyone who still has it. Search engines find the site again in their own time.

What it is not

It is not a security boundary, and our documentation says so plainly. Everyone shares one password, anyone you give it to can pass it on, and we can show it back to you, so it isn’t a secret we could keep even if we wanted to. Don’t put client files, personal data or a members’ area behind it. A site that needs real access control needs something other than a static site.

Good uses

  • A client reviewing a new site before launch.
  • A staging site built from a second branch of the same repository, where you try changes before they reach the live one.
  • A site kept private while its content is written.

There is no log-out button, because the browser handles the password. It remembers it for the rest of the session, so close the browser or open a private window to see the prompt again.

We first wrote about this in September, in Decide Who Sees Your Site, and Who Sees Its Numbers. Yesterday’s post covered the other half of that question: giving a client the numbers without your login.

get started

Ready to Deploy?

Join Jamstack developers across the UK hosting their static sites with privacy and performance built in. Hosting is free for good, no credit card needed, with Plus features when you want them.