CorefinityCorefinityDocs
Open the Control PanelControl Panel
Access and security · 7 of 7

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

  1. Open Password protection

    Go to Managed Websites, choose the site, then Password protection under Access & security. Choose Turn on.

  2. Set the first login

    Under Users, enter a Username. Leave Password on Generate, or choose Set and enter one.

  3. 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

  1. Add a rule

    Open Advanced and choose Add rule. Enter a Path prefix, or choose Admin area for the platform's admin paths.

  2. 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

Password protection

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.

PUT/api/corestack/sites/{site}/http-auth
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
  }'
Was this helpful?
Open in ClaudeOpen in ChatGPT