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