Password Protected Folders On Website Print

  • webiste file sharing, password protected directories, password protected folder, directory listing
  • 0

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

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

  1. Go to Websites & Domains and find the site's domain name.
  2. Click Password-Protected Directories, and Add Protected Directory.
  3. In the Directory namebox, specify the path to the directory that you want to protect with a password.

    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.

  4. In the Title of the protected area box, type a resource description or a welcoming message that your users will see when they visit the protected area.
  5. Click OK. The directory you specified will be protected.
  6. To add authorized users, click Add User.
  7. Specify the username and password that will be used for accessing the protected area. The password should be from 5 to 14 symbols in length. Click OK.

Protected_directories

To add an authorized user of a protected directory:

  1. Go to Websites & Domains and find the site's domain name.
  2. Click Password-Protected Directories.
  3. Click on the name of the directory you need.
  4. Click the Add User icon.
  5. Specify the username and password that will be used for accessing the protected area. The password should be from 5 to 14 symbols in length.
  6. Click OK.

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

  1. Go to Websites & Domains and find the site's domain name.
  2. Click Password-Protected Directories.
  3. Click on the name of the directory you need. A list of authorized users will open.
  4. Click on the user’s name.
  5. Specify the new password and re-type it for confirmation.
  6. Click OK.

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

  1. Go to Websites & Domains and find the site's domain name.
  2. Click Password-Protected Directories.
  3. Click on the name of the directory you need. A list of authorized users will open.
  4. Select a checkbox corresponding to the user’s name.
  5. Click Remove. Confirm the operation and click OK.

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

  1. Go to Websites & Domains and find the site's domain name.
  2. Click Password-Protected Directories.
  3. Select a checkbox corresponding to the name of the directory from which you want to remove protection.
  4. Click Remove Protection. The protection will be removed and the contents of the directory will be accessible to the public without restrictions.

To add a directory where users can browse the contents through directory listing:

  1. Go to Websites & Domains and find the site's domain name.
  2. Click File Manager.
  3. Click on the folder you just created.
  4. Click +New > Create Directory. Give your directory a name. Eg. Files
  5. Click +New > Create File. Call this file .htaccess - DO NOT select USE THE HTML TEMPLATE
  6. Add this:  Options +Indexes
  7. Save the file.
  8. You can now list all the files in a directory within a password protected directory on your website.

Was this answer helpful?

« Back