How to Setup Password Protected Directory for a Domain in Plesk

June 23, 2022 / Plesk

When you add password protection to a directory, site visitors are prompted for a username and password when they try to access it. After typing a valid username and password they can only view directory content.

Visitors wishing to access password-protected directories must enter a username and password to view the contents of the directory.

In this article, you will find how to set up a password-protected directory for a domain in Plesk. You can password-protect the directory and place some restrictions on public access to your website.

Note- When you password-protect a directory, any directories beneath it are also password-protected.

Let us follow the steps-

  1. Log in to Plesk.
    Plesk Login
  2. Select the “Websites & Domains” option.
    Websites & Domains
  3. Select “Password-Protected Directories” from the drop-down menu.
    Password-Protected Directories
  4. Click on the “Add Protected Directory” under tools.
    Add Protected Directory
  5. Type the name of the directory you want to protect in the Directory Name text box under Settings.
    Enter Directory nameNote : The directory name should not contain the words httpdocs. Simply type the directory’s name.
    Optionally, type a name for the protected directory in the Title of the protected area text box.
  6. Enter the “Title of the protected area”.
    Title of the protected area
  7. Click on the “Ok” button.
    ok
  8. You will get a success message.
    success
  9. You will find the list of the directories as shown below.
  10. Click on the recently added directory.
    recently added directory
  11. Click Add a User under Tools, then type a name for the user in the Username text box under Protected directory user.
    Add userenter username
  12. Type the user’s password in the New Password and Confirm Password text fields
    enter password
  13. Click on the “Ok” button.
  14. You will receive a success message.
    password protected directory

 

That’s it!!

This option isn’t limited to just Plesk , you can also set up Directory Privacy in cPanel for securing your files and folders.

For any problem contact our support staff at any moment. Also, take a glance at eukhost latest web hosting plans.

Spread the love