This demo will show you how to password protect a directory through your cPanel. Password protecting a directory makes it so that a log in prompt appears when you attempt to view the directory in your internet browser. A visitor will only be able to view the contents of the directory if they have a valid username and password.
was password protected any folders within the "stuff" folder would be password protected as well, such as:http://example.com/stuff/notes/
 Click on the "Password Protect Directories" icon within the "Security" section of your cPanel
 Select the document root folder you wish to start in
 Click the "Go" button
 Locate the folder that you're wanting to password protect. You can navigate into a folder by clicking on the folder icon that's next to the folder's name.
 Once you've located the folder you want to password protect, click on the name of the folder
 Checkbox "Password protect this directory"
 Enter the name of your protected directory in the "Name the protected directory" field (it can be anything you like)
 Click the "Save" button
 Click "Go Back"
 Enter your desired username into the "Username" field
 Enter your desired password into the 2 password fields or use the "Password Generator"
 Click the "Add/modify authorized user" button