Knowledgebase

Password Protecting a website directory

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


  1. On your Home page, click the  Directories icon in the Hosting group.
  2. Click  Add New Directory.
  3. Specify the path to the directory that you wish to password protect.

    This can be any directory existing in your 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. Specify in what location (also called document root) your password protected directory resides or will reside.

    For example:




    • To protect the httpdocs/private directory, type '/private' in the Directory name box and select the Non-SSL check box.

    • To protect the httpsdocs/private directory, type '/private' in the Directory name box and select the SSL check box.

    • To protect your CGI scripts stored in the cgi-bin directory, leave the '/' value in the Directory name box and select the cgi-bin check box. Make sure there are no white spaces after the slash symbol; otherwise, a protected directory will be created with the name consisting of white spaces.



  5. In the Header Text box, type a resource description or a welcoming message that your users will see when they visit your protected area.

  6. Click OK.

    The directory you specified will be protected.



  7. To add authorized users, click  Add New User.
  8. 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.



  9. Click OK.

  10. To add more authorized users for this protected resource, repeat the steps 7 and 8.

Was this answer helpful?

 Print this Article

Also Read

Previewing Your Site

Once you published your site to your web space, you may want to make sure that it functions...

Unprotecting a Resource

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

Adding and Removing Authorized Users

To add an authorized user of a protected directory: On your Home page, click the...

Customising Web Server Error Messages

When visitors coming to your site request pages that the web server cannot find, the web server...

Powered by WHMCompleteSolution