Skip to content

Password protection

Any published app can be gated behind a single site password. Visitors see a password prompt before anything else loads; everyone with the password gets in. It is a lightweight gate for controlling who can view a site — not a replacement for user accounts inside your app.

Enabling protection

Two ways:

  • At publish time — check Password protect this site in the publishing panel and enter a password before clicking Publish. The site is protected from its first request.
  • On a published site — click Set password in the publishing panel of an already-published project.

Passwords must be 8 to 128 characters.

How it behaves

  • The gate applies within seconds — setting, changing, or removing the password never rebuilds or redeploys the app. The running deployment is untouched. On a deployment that runs several Crios servers, a server that has not yet picked up the change keeps the previous setting for at most about ten seconds.
  • Visitors first see a page reading This site is password protected, with a password field and Unlock site. A wrong password shows That password is not correct.; after too many wrong attempts in a short time, the page asks them to wait a moment before trying again.
  • Visitors who enter the password stay signed in for 7 days on that browser.
  • When you change the password, everyone currently signed in is signed out and asked for the new one within seconds.
  • A Protected badge on the publishing panel, and a lock on the project's Publications row, show the current state.

Note

The password is never displayed again after you save it. Crios only shows that the site is protected, not what the password is. If it is lost, set a new one — that is a one-click change and invalidates the old password everywhere.

Changing and removing

From the publishing panel on a protected site:

  • Change password — enter a new one; applies within seconds and re-prompts all visitors.
  • Remove password — after a confirmation, the site becomes public and anyone with the link can view it within seconds.

Only users with manage access on the project can set, change, or remove the password.

When to use it

  • Staging and pre-launch — publish to the real domain early, keep it gated until launch day, then remove the password. No redeploy needed at the moment you go public.
  • Client previews — share a work-in-progress app with a client by sending the URL and the password. Rotate the password when the engagement ends.
  • Internal tools — small utilities for your team that do not warrant their own login system.
  • Demos — time-boxed access for a sales demo or review; remove or change the password afterwards.

Limits to keep in mind

One password is shared by all visitors — there is no per-person access or audit trail of who viewed the site. If your app needs real authentication, individual accounts, or role-based access, build that into the app itself; the publishing gate then adds an extra outer layer while you are still testing.

Password protection is configured per publication. See Publishing your app for the publish flow and custom domains for DNS and certificates — protection works the same whichever domain the site is on, and survives republishing unchanged. It also survives unpublishing: publishing the project again brings the site back with its earlier password, unless you enter a new one or remove it.