Password protection
Put a browser login in front of an environment, or in front of one path such as the admin area.
On this page
Before you start
- You can open the site in Managed Websites. Anyone who can open a site can change its password protection.
- Each environment has its own protection: choose Production or Staging in the site header first. Production starts open; staging environments start protected.
- Addresses with Website access on the environment's firewall are never asked for the login.
Protect the whole environment
Open Password protection
Go to Managed Websites, choose the site, then Password protection under Access & security. Choose Turn on.
Set the first login
Under Users, enter a Username. Leave Password on Generate, or choose Set and enter one.
Turn it on
Choose Turn on. A generated password is shown once: copy it, then choose Done.
The login is asked for after about a minute. The card then shows the Username and the hidden Password: Reveal shows it, and every reveal is logged.
On Production, pages a CDN or a visitor's browser cached before you turned protection on stay visible to them until that cache expires.
Protect one path
Add a rule
Open Advanced and choose Add rule. Enter a Path prefix, or choose Admin area for the platform's admin paths.
Add its users and save
Enter a Username for each person, choose Add rule, then Save changes on the card. Path rules are a draft until you save them, and apply about ten seconds later.
Change logins or turn protection off
Open Advanced. Each rule's row has Add user, Edit and Remove, and each user has Set new password… and Remove.
To stop asking for a login, turn off the switch at the top of the card. The whole-environment rule keeps its users while it is off.
Automate this
Replaces the whole set of rules and users, so start from the last read and keep the id of every rule and user you want to keep.
curl -X PUT https://manage.corefinity.com/api/corestack/sites/1042/http-auth \
-H "Authorization: Bearer $COREFINITY_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"enabled": false,
"rules": [
{
"enabled": true,
"path_prefix": "/wp-admin/",
"users": [
{
"password": "Example-editor-2026",
"username": "editor"
}
]
}
],
"version": 0
}'Your assistant calls corestack_http_auth_update.
{
"name": "corestack_http_auth_update",
"arguments": {
"site_id": 4211,
"version": 3,
"rules": [
{
"path_prefix": null,
"enabled": true,
"users": [
{
"username": "client",
"generate": true
}
]
}
]
}
}