Previous Topic

Next Topic

Book Contents

Restricting Access to Web Site's Resources with Password Protection

If you have directories in a site that only authorized users should see, restrict access to these directories with password protection.

To password protect a directory in your site and to specify authorized users:

  1. Click the Domains shortcut in the navigation pane.
  2. Click the required domain name in the list.
  3. Click the Directories icon in the Hosting group.
  4. Click Add New Directory.
  5. Specify the path to the directory that you wish to password protect.

    This can be any directory existing in the site, for example: /private. If the directory that you would like to protect has not yet been created, specify the path and the directory name – Plesk will create it for you.

  6. Specify in what location (also called document root) your password protected directory resides or will reside. For example:
  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 authorized 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 symbols in length. Click OK.
  11. To add more authorized users for this protected resource, repeat the steps 7 and 8.

To add an authorized user of a protected directory:

  1. Click the Domains shortcut in the navigation pane.
  2. Click the required domain name in the list.
  3. Click the Directories icon in the Hosting group.
  4. Click on the name of the directory you need.
  5. Click the Add New User icon.
  6. Specify the login name and password that will be used for accessing the protected area. The password should be from 5 to 14 symbols in length.
  7. Click OK.

To change password for an authorized user of a protected directory:

  1. Click the Domains shortcut in the navigation pane.
  2. Click the required domain name in the list.
  3. Click the Directories icon in the Hosting group.
  4. Click on the name of the directory you need. A list of authorized users will open.
  5. Click on the user's name.
  6. Specify the new password and re-type it for confirmation.
  7. Click OK.

To revoke a permission to access the protected directory from a user:

  1. Click the Domains shortcut in the navigation pane.
  2. Click the required domain name in the list.
  3. Click the Directories icon in the Hosting group.
  4. Click on the name of the directory you need. A list of authorized users will open.
  5. Select a check box corresponding to the user's name.
  6. Click Remove Selected. Confirm the operation and click OK.

To remove password protection and make the resource available to the public:

  1. Click the Domains shortcut in the navigation pane.
  2. Click the required domain name in the list.
  3. Click the Directories icon in the Hosting group. A list of password protected directories will open.
  4. Select a check box corresponding to the name of the directory, from which you want to remove protection.
  5. Click Remove Selected. The protection will be removed and the contents of the directory will be accessible to the public without restrictions.