Categories: Plesk

Creating a Password-Protected Directory – Plesk Onyx

Restricting Access to Content

Demo Video: Learn how to restrict access to a site directory with a password and add authorized users.

If you want to limit public access to specific areas of your website, you can secure them with a password using the “Protected Directories” feature. It allows you to designate certain directories of your website as “password protected”. Anyone accessing such a directory or any directories and files inside it will be presented with a challenge, and will need to provide a correct username and password to view the protected content.

To protect a directory with a password, follow these steps:

  1. Go to Websites & Domains > Password-Protected Directories.
  2. Click Add Protected Directory.
  3. Type in the path to the directory you want to protect (relative to the domain’s document root directory) and, optionally, a title that will be displayed to visitors.Note: In Plesk for Linux, the specified directory will be created if it does not exist. In Plesk for Windows, you can only secure an existing directory.
  4. Click OK.

If you decide to change the directory’s title, follow these steps:

  1. Go to Websites & Domains > Password-Protected Directories.
  2. Click the desired password-protected directory, and then click Directory Settings.
  3. Type in the new directory title, and click OK.

Before anyone can access the protected directory, you need to add at least one user to it. This user will only have access to this specific directory, and not all of the domain’s protected directories. Every time you secure a directory with a password, you need to add a user, otherwise nobody would be able to access it.

To add a user to a password-protected directory, follow these steps:

  1. Go to Websites & Domains > Password-Protected Directories.
  2. Click the desired password-protected directory, and then click Add a User.
  3. Type in the username and password, and click OK.

If you decide to change a user’s password, follow these steps:

  1. Go to Websites & Domains > Password-Protected Directories.
  2. Click the desired password-protected directory, and then click the user whose password you want to change.
  3. Type in the new password, and click OK.

If you decide to remove a user entirely, follow these steps:

  1. Go to Websites & Domains > Password-Protected Directories.
  2. Click the desired password-protected directory, and then select the checkbox corresponding to the user you want to remove.
  3. Click Remove.

Keep in mind that unless there is at least one user associated with a password-protected directory, no one can browse that directory and its contents.

If you change your mind and decide to remove password protection from a directory, follow these steps:

  1. Go to Websites & Domains > Password-Protected Directories.
  2. Select the checkbox corresponding to the directory from which you want to remove protection, and then click Remove Protection.
Admin

Share
Published by
Admin

Recent Posts

Enable Outgoing SMTP Server Authentication

All our servers need you to enable outgoing SMTP server authentication to be able to…

4 years ago

Plesk Tutorials – How to configure DNS for a domain in Plesk

Learn how to configure and check your DNS settings in Plesk. After you registered your…

5 years ago

cPanel Tutorials – Force HTTPS Redirect

This video demonstrates how to use the Force HTTPS Redirect feature. This feature allows you…

5 years ago

cPanel Tutorials – MultiPHP Manager

Use cPanel's MultiPHP Manager to manage your domains' PHP version. Being able to manage the…

5 years ago

Email account setup in Outlook 2016

This tutorial will help you to configure Microsoft Outlook 2016 for an email account. Step…

5 years ago

Message Queueing

Generally emails are directly delivered to the destination server. However, if the delivery attempt to…

5 years ago