How to password protect a directory?
1- Click on the Password protect directories button on the Cpanel home page. 2- Navigate to the directory that you want to protect. Select a folder by clicking on the folder name link, or open a folder by clicking on the folder icon. 3- Click on the tick box next to the (lock) icon. 4- Enter the name that you want to appear in the Protected Resource Name field. This is optional and purely for the user's benefit. 5- Click on the Save button. Generally, you now need to add at least one authorized user to enable access to the directory. Refer to Adding an authorized user for more information.