Security Password protection of a site or a part of it

Deutsch

Password protection of a site or a part of it

How visitors are asked for a user name and password before they see your whole site, a staging host or one path such as an admin or members area.

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 /members or /reports: that page and everything under it asks, the rest of the site stays open.

What you choose for each protected area

Host nameyour 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 showsup to 60 characters, for example "Staging"
Who gets insee below
Usersas many user names as you need, each with its own password
Paths left openfor example a webhook address that another service calls

Who gets in

ChoiceWhat a visitor needs
Passworda user name and its password
Password, or an allowed address without onea password, unless the visitor comes from one of your addresses (your office): then no password is asked
Password and an allowed addressa 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.

Next: protect your site or a part of it.