Password protection asks every visitor for a user name and password before the server shows anything. The browser shows a small sign-in box with a text you choose. It is a lock in front of your site, separate from the accounts of the site itself.
Typical uses
- A new site that is still being built: protect the whole host (path
/) until launch. - A staging or admin host such as
edit.example.com: the password comes before the site's own sign-in, so the sign-in page is not even visible to strangers. This is how 7x protects its own staging hosts. - One path of a live site, such as
/membersor/reports: that page and everything under it asks, the rest of the site stays open.
What you choose for each protected area
| Host name | your site's main domain or one of its subdomains and additional domains (www. belongs to the main domain) |
| Path | / for the whole host, or a path such as /members with everything under it |
| Text the browser shows | up to 60 characters, for example "Staging" |
| Who gets in | see below |
| Users | as many user names as you need, each with its own password |
| Paths left open | for example a webhook address that another service calls |
Who gets in
| Choice | What a visitor needs |
|---|---|
| Password | a user name and its password |
| Password, or an allowed address without one | a password, unless the visitor comes from one of your addresses (your office): then no password is asked |
| Password and an allowed address | a password and one of your addresses; anyone else is refused even with the right password |
The last choice is not available on every server; the form only offers what your site's server supports.
Note
A browser can only send one user name and password per page. "Double protection" therefore means the password plus an address, or the password in front of your site's own sign-in.
Good to know
- We never see your passwords. Only a scrambled form (a bcrypt hash) is kept; nobody can read a password back. If one is forgotten, set a new one.
/.well-known/always stays open, so your SSL certificate keeps renewing.- Search engines cannot see a protected part, so do not protect a live site's pages that should be found.
- Basic password protection is meant for staging and private areas. Use HTTPS links only, which 7x sites do by default.
Related articles
- Protect your site or a part of it with a password Add a password-protected area to a site in the customer console, add users or change their passwords, and remove the protection again.
- Website security checklist Ten things every site owner can do to keep their site, e-mail and account safe, no expert knowledge needed.