Diadem Technologies Support Knowledgebase

How Add Password Protected Directory

Article ID: 1279
Last updated: 14 Dec, 2019

How Add Password Protected Directory

Step1: In plesk, find which directory is the Document Root directory for the domain at Domains > example.com > Hosting Settings > Document root.

Step2: Go to Website & Domains > example.com > Password-Protected Directories and click Add Protected Directory.

Step3: Specify the directory, located inside Document Root from step 1 ('httpdocs' in this example), that should be secured. In this case, we are restricting an access to the /httpdocs/img folder (example.com/img). Click OK.

Note: Specify "/" to protect the whole website with a password authentication.

Step4: Now, click on the directory name.

Step5: Click Add a User to create a user that will be used to access the password protected directory. Click OK. Add other users if required.

Step6: Open the now protected URL in a web-browser (in this example, example.com/img) and log in using the username and password  .

This article was:  
Report an issue
Article ID: 1279
Last updated: 14 Dec, 2019
Revision: 1
Views: 157
Comments: 0