cPanel - Password Protect a Directory
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. They will only be able to view the contents of the directory if they have a valid username and password.
*NOTE: Password protecting a directory will also cause any directories within the password protected directory to be password protected as well. For example, if the following directory:
http://example.com/stuff
was password protected any folders within the "stuff" folder would be password protected as well, such as:
http://example.com/stuff/notes
Steps on how to password protect a directory:
[1] Click on "Web Protect" within the "Security" section of your cPanel
[2] Select the directory you want to protect by clicking on its name (If you need to browse deeper into the file structure, you will want to click on the folder icon next to the directory's name)
[3] Click the check box next to "Password protect this directory"
[4] Enter the name for the protected folder in the text box below
[5] Click the "Save" button to password protect the directory
Steps on how to create a username that is able to access the password protected directory:
[1] Click "Go Back" once you have finished password protecting the directory
[2] Scroll down to the "Create User" field
[3] Enter the username into the "UserName" field
[4] Enter your password into the two "Password" fields (You can use cPanel's password generation utility if you prefer)
[5] Click the "Add/modify authorized user" button to allow that user access to your password protected directory
|
|
|