How to password-protect a folder or website

For hosting customers · Updated 2026-10-29

On this page
  1. Steps
  2. Add or remove users
  3. Leech protection
  4. Good to know
  5. Common questions

Password protection makes the browser ask for a username and password before showing a folder (for example /members) or a whole website. It is useful for a staging site, a private download area or an admin folder.

Steps

  1. Log in to the control panel (https://your-server:2083).
  2. Open Access Control in the menu (section Domains).
  3. Under Protect a folder / add a user, choose the Website.
  4. Folder (/ = whole website) — / for the whole website, or a path such as /members.
  5. Name shown in the login box — for example Members area (optional; the default is Protected area).
  6. Username — 2–64 letters, digits, ., _ or -.
  7. Password — at least 8 characters, or click Generate.
  8. Click Save. The message Saved. The folder asks for the password within a minute. appears, and the folder is shown at the top of the page with its users.

Add or remove users

  • To add a user, fill in the same form again with the same Website and Folder and a new Username. Saving an existing username changes its password.
  • To remove a user, click × next to the name. When the last user is removed, the folder is public again.
  • To remove the protection completely, click Remove protection and confirm.

Leech protection

Leech protection disables a username that is used from too many different IP addresses in an hour, for example when a password is shared publicly.

  1. Under the protected folder, enter a number in Leech protection: disable a username used from more than … different addresses in an hour, for example 5. 0 turns it off.
  2. Click Save.

A disabled user is marked disabled (leech protection). Click Enable to let them in again. If every user of a folder is disabled, the folder stays closed.

Good to know

  • The path is relative to the website: /members is public_html/members for the main domain.
  • The password files are kept in the server's configuration, not in your home folder.
  • Protection works for every file in the folder and its subfolders.

Common questions

Does this replace my website's own login?

No. It is an extra login in front of the folder, shown by the browser.

Can I protect only one file?

No. Protection applies to a folder. Move the file into its own folder and protect that.

Was this article helpful?

Still stuck?

Ask the AI about your exact situation — it answers from this knowledge base — or contact us.