How to protect a directory with login and password with the help of Hosting Controller?

This article guides through the steps needed to create password protected web directories.

What are password protected directories?: Password protected web directories are those which require a user login name and password when accessed from the web through a web browser.


To create a password protected directory, follow these steps:


  1. Login into control panel as WebAdmin, click Domains, click List Web Sites and select website under which the password protected directory is needed.
  2. Click Virtual Dir. button, click Add Virtual Dir. button.  Select the folder path in Physical Path box, hit Expand button and browse until you reach the folder which is needed to secure,e.g.
  3. Enter a directory name in Alias for Virtual Directory box, e.g. mysecret. Select No from Allow Anonymous radio box (No is selected by default) and click Add Virtual Directory button.

 The above procedure will create a virtual directory mysecret pointing to the folder You may then access the directory as Because anonymous access is denied, therefore when this URL is accessed, the browser will prompt for login and password and only the user given ACL access on the physical directory will be allowed to login.

To add ACL access to the directory, follow these steps:


  1. Login as Web Admin, click ACL Manager, click ACL Permissions, select the website name in Folder box, click Select Folder button and browse until you select the folder on which permission has to be set.
  2. Click on Permissions button, select the user from Users box, select the desired permission from Permissions box, select Both (files and folder) from Inheritance box and click Add/User button.
  • 30 Users Found This Useful
Was this answer helpful?

Related Articles

How to secure windows server? What are best security practices?

This is a guide to increase security for Windows 2000, and is mainly intended for ISP, Web...

My server is behind firewall. What ports do I need to keep open?

If your servers are behind firewall, the following common ports need remain open. IMail...

How To Enable SSL on Windows Server?

This article demonstrates how to quickly set up Secure Sockets Layer (SSL) in a Windows 2000...

HC Hangs - Script Time Out

  Question : HC was working fine, but suddenly it has stopped working. When I try to add...

I forgot my HC user password, how do I reset the password?

There are two method of resetting password. 1. The password can be refreshed using the...

Powered by WHMCompleteSolution