Password Protect a Directory: Difference between revisions
Docs admin (talk | contribs) test |
Docs admin (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
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. | |||
{{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/ | http://example.com/stuff/ | ||
was password protected any folders within the "stuff" folder would be password protected as well, such as: | was password protected any folders within the "stuff" folder would be password protected as well, such as: | ||
http://example.com/stuff/notes/ | http://example.com/stuff/notes/}} | ||
{{video|/swffiles/cPanel/passwordprotect/passwordprotect.html}} | |||
[1] Click on the "Password Protect Directories" icon within the "Security" section of your cPanel | [1] Click on the "Password Protect Directories" icon within the "Security" section of your cPanel | ||
[2] Select the document root folder you wish to start in | [2] Select the document root folder you wish to start in | ||
[3] Click the "Go" button | [3] Click the "Go" button | ||
[4] Locate the folder that you're wanting to password protect | [4] 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. | ||
[5] Once you've located the folder you want to password protect, click on the name of the folder | [5] Once you've located the folder you want to password protect, click on the name of the folder | ||
[6] Checkbox "Password protect this directory" | [6] Checkbox "Password protect this directory" | ||
[7] Enter the name of your protected directory in the "Name the protected directory" field ( | [7] Enter the name of your protected directory in the "Name the protected directory" field (it can be anything you like) | ||
[8] Click the "Save" button | [8] Click the "Save" button | ||
[9] Click "Go Back" | [9] Click "Go Back" | ||
[10] Enter your desired username into the "Username" field | [10] Enter your desired username into the "Username" field | ||
[11] Enter your desired password into the 2 password fields or use the "Password Generator" | [11] Enter your desired password into the 2 password fields or use the "Password Generator" | ||
[12] Click the "Add/modify authorized user" button | [12] Click the "Add/modify authorized user" button | ||
[[Category:cPanel]] |
Revision as of 15:33, 9 October 2012
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/
[1] Click on the "Password Protect Directories" icon within the "Security" section of your cPanel
[2] Select the document root folder you wish to start in
[3] Click the "Go" button
[4] 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.
[5] Once you've located the folder you want to password protect, click on the name of the folder
[6] Checkbox "Password protect this directory"
[7] Enter the name of your protected directory in the "Name the protected directory" field (it can be anything you like)
[8] Click the "Save" button
[9] Click "Go Back"
[10] Enter your desired username into the "Username" field
[11] Enter your desired password into the 2 password fields or use the "Password Generator"
[12] Click the "Add/modify authorized user" button