Views:

Password protecting directories

Overview

It may be necessary to password protect a directory or folder on your web site to prevent general public access or to prevent public download of Access databases stored within a folder.

You can easily password protect a directory using the Plesk Server Administrator following the instructions below:

Password Protecting a Directory for Unix Hosting Accounts

  1. Login to the Plesk Server Administrator.
  2. Select the domain name you wish to setup password protected directories for.
  3. Click on the Protected Directories button.
  4. Click Add New Directory button.
  5. Specify the path to the directory that you wish to password protect.
    This can be any directory existing in the site, for example: /admin. If the directory that you would like to protect has not yet been created, specify the path and the directory name and Plesk will create it for you.
  6. Leave the default Directory Location values set to Non-SSL and SSL.
  7. In the Header Text box, type a resource description or a welcoming message that your users will see when they visit the protected area.
  8. Click OK. The directory you specified will be protected.
  9. To add authorised users, click Add New User.
  10. Specify the login name and password that will be used for accessing the protected area. The password should be from 5 to 14 characters in length. Click OK.
  11. To add more authorised users for this protected resource, repeat the steps 9 and 10.

Password Protecting a Directory for Windows Hosting Accounts

  1. Login to the Plesk Server Administrator.
  2. Select the domain name you wish to setup password protected directories for.
  3. Click on the Protected URLs button.
  4. Click Add New Directory button.
  5. Specify the path to the directory that you wish to password protect.
  6. This can be any directory existing in the site, for example: /admin.
  7. In the Realm access text box, type a resource description or a welcoming message that your users will see when they visit the protected area.
  8. Click OK. The directory you specified will be protected.
  9. To add authorised users, click Add New User.
  10. Specify the login name and password that will be used for accessing the protected area. The password should be from 5 to 14 characters in length. Click OK.
  11. To add more authorised users for this protected resource, repeat the steps 9 and 10.

Get in touch

For any additional help, give us a call on 0800 477 333 (8AM to 10PM, 7 days a week).