Skip to content

Website access: password gate, redirect, hiding from search engines

Describes PhoenixKit 3.5.0.

Website access gathers every way of controlling who sees the site at all. It is mostly for a site that isn’t public yet, such as a staging copy you show a client.

Where to find it

Settings > Website access in the admin sidebar, at /admin/settings/website-access. You need the Security settings permission (part of Settings).

There is one tab per feature: Password gate, Redirect to production, Site closed, Hide from search engines and Allowed addresses. Each has a switch marked Enabled or Disabled, and an on badge while it is actually in force. A feature that is switched on but missing something says switched on, needs followed by what, for example a password.

Every switch on this page is recorded in the settings history with your name.

Settings, Website access, Password gate in PhoenixKit: the password, lock-out after wrong tries, what to keep of what was typed, and access links Settings, Website access, Password gate in PhoenixKit: the password, lock-out after wrong tries, what to keep of what was typed, and access links

Website access: a password gate in front of the whole site.

Password gate

A hard block before anyone sees anything: a blank page with only a password prompt. The password is needed to see the site at all, and to reach your own log-in page.

  • Password: type a new one to replace it; blank keeps the current one. Without a password the gate can’t close. Changing it asks everyone for the password again.
  • Lock out after (wrong tries) and for (minutes): how many wrong tries from one address lock it out, and for how long. 0 turns the lockout off.
  • Keep what was typed: Everything typed on a wrong try, Only near misses (wrong case, a typo) or Nothing. It helps you tell a client’s caps lock from a bot’s guesses.
  • Logged-in users pass without the password: on, signed-in people aren’t asked. Off, every login has to type it too, including you after you change it.
  • Save stores these; Ask everyone again makes everyone type the password again.

Access link: a link to give a client instead of the password. Opening it shows one button that lets them in. Make an access link creates one; then Copy, Make a new one (the old link stops working) and Revoke. The page also shows the address of the gate page itself.

Tries at the door lists every try, newest first, the last 5,000 kept: when, the result (correct, right letters, wrong case, close — a typo, wrong, empty, locked out, access link), what was typed, the address and the browser. Counts per result sit above the table. Columns chooses which columns show; hide the typed text if it shouldn’t be on screen. Clear empties the history.

Redirect to production

Visitors asking for a public page are sent to the same path on the production site. Signed-in users and admin pages are never redirected.

  • Production URL, for example https://www.example.com. The path and query are kept: /about here becomes /about there.
  • Who is redirected: Everyone, or Search-engine crawlers only.

Site closed

Shows a closed page to everyone but staff. See the Maintenance mode guide.

Hide from search engines

Every page tells crawlers not to index it, in the page and in a response header. This is the same switch as on the Crawlers page. When the Crawlers module is on, a link leads to its per-bot settings and robots.txt; the switch works without the module too.

Allowed addresses

Exact IP addresses, one per line, that walk past the password gate and the redirect without a password: the office, a home connection. Save stores the list. These addresses still see the closed page.

How the pieces stack

The page’s own summary: on every page request, in this order, an allowed address skips the next two; the redirect sends a public visitor away; the gate stops anyone without the password; the closed page shows to non-admins.

What it doesn’t do

  • The gate covers the site’s pages. API routes and files the app serves outside its normal page pipeline are not behind it.
  • Allowed addresses take exact addresses, not ranges.