Password-protecting a site folder in ISPmanager

An access restriction adds an extra password to a site folder. When it is opened, the browser shows a login window, and without the login and password the visitor cannot go further. Use it to hide a staging copy from search engines and strangers, a CMS admin area or a service folder.

Protect a folder with a password

  1. "Sites" → three dots on the site → "Access limits".
  2. "Create restriction".
  3. Set the directory: type the path or pick it in the tree. / is the whole site.
  4. Click "Next >>".
  5. Set the username and password, repeat the password. Finish creating the restriction.
Protecting directory
Protecting directory
Choosing the directory
Choosing the directory

The browser asks for the login and password when the folder is opened. This is a separate account: it is not linked to the panel or CMS password.

Users and removing the restriction

Tick the restriction and click "Users" — here you add more users, change a password or disable a user. To remove the protection, delete the restriction from the list.

Be careful

  • WordPress: when protecting wp-admin, note that many plugins call wp-admin/admin-ajax.php from regular pages. Forms, filters and the cart may stop working for visitors.
  • External services — payment systems, schedulers, APIs — cannot reach a protected folder. Do not protect folders they call.
  • The password is sent with every request. Enable HTTPS so that it cannot be intercepted: redirect to HTTPS.
  • A restriction keeps strangers out, but does not replace CMS updates and strong passwords.

Remove the restriction from the whole site while a Let's Encrypt certificate is issued.

Questions and answers
Three dots on the site → "Access limits". Choose the admin folder and add a user.
Yes. Set the directory to /.
If the whole site is protected, validation fails. Remove the restriction while issuing.