Password-Protecting a Folder in Plesk

Password-Protecting a Folder in Plesk

Learn how to password-protect a folder of your website in Plesk. Visitors must enter a username and password before anything in that folder is shown, which is useful for an admin area, a staging copy or files meant only for certain people.

Steps

  1. Log in to Plesk via your Zeniar Portal
  2. Select Websites & Domains from the left-hand menu
  3. Click Password-Protected Directories under Security. If you have more than one domain, expand the domain you'd like to update first
  4. Click Add Protected Directory
  5. In Directory name, enter the folder to protect, for example /admin. Enter / to protect the whole website
  6. In Title of the protected area, enter a short description. Visitors may see this when they are asked to log in
  7. Click OK
  8. Click the name of the directory you just added, then click Add a User
  9. Enter a username and a strong password, then click OK
  10. Visit the folder in a web browser and check that you are asked to log in

Please note: This protects a folder from visitors to your website. It does not encrypt the files or change who can reach them through Plesk or FTP.

Note: Add a separate user for each person who needs access, so you can remove one person later without changing the password for everyone.

Your folder now asks for a username and password before it can be opened.