Difference between revisions of "Password Protect a Directory"

From Acenet Knowledgebase
Jump to: navigation, search
(test)
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<html>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.<br />
+
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.
<br />
+
 
<div style='padding:10px;border:1px solid #ddd;margin:10px;'>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:<br />
+
{{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:
<br />
+
 
http://example.com/stuff/<br />
+
<nowiki>http://example.com/stuff/</nowiki>
<br />
+
 
was password protected any folders within the "stuff" folder would be password protected as well, such as:<br />
+
was password protected any folders within the "stuff" folder would be password protected as well, such as:
<br />
+
 
http://example.com/stuff/notes/</div><br />
+
<nowiki>http://example.com/stuff/notes/</nowiki>}}
<br />
+
 
<iframe src="https://esupport.acenet-inc.net/swffiles/cPanel/passwordprotect/passwordprotect.html" width="700" height="540"> </iframe><br />
+
{{video|/swffiles/cPanel/passwordprotect/passwordprotect.html}}
<br />
+
 
[1] Click on the "Password Protect Directories" icon within the "Security" section of your cPanel<br />
+
[1] Click on the "Password Protect Directories" icon within the "Security" section of your cPanel
<br />
+
 
[2] Select the document root folder you wish to start in <br />
+
[2] Select the document root folder you wish to start in  
<br />
+
 
[3] Click the "Go" button<br />
+
[3] Click the "Go" button
<br />
+
 
[4] Locate the folder that you're wanting to password protect (<i>you can go into a folder by clicking on the folder icon that's next to the folder's name</i>)<br />
+
[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.
<br />
+
 
[5] Once you've located the folder you want to password protect, click on the name of the folder<br />
+
[5] Once you've located the folder you want to password protect, click on the name of the folder
<br />
+
 
[6] Checkbox "Password protect this directory"<br />
+
[6] Checkbox "Password protect this directory"
<br />
+
 
[7] Enter the name of your protected directory in the "Name the protected directory" field (<i>it can be anything you like</i>)<br />
+
[7] Enter the name of your protected directory in the "Name the protected directory" field (it can be anything you like)
<br />
+
 
[8] Click the "Save" button<br />
+
[8] Click the "Save" button
<br />
+
 
[9] Click "Go Back"<br />
+
[9] Click "Go Back"
<br />
+
 
[10] Enter your desired username into the "Username" field<br />
+
[10] Enter your desired username into the "Username" field
<br />
+
 
[11] Enter your desired password into the 2 password fields or use the "Password Generator"<br />
+
[11] Enter your desired password into the 2 password fields or use the "Password Generator"
<br />
+
 
[12] Click the "Add/modify authorized user" button</html> [[Category:cPanel]]
+
[12] Click the "Add/modify authorized user" button
 +
 
 +
[[Category:cPanel]]

Latest revision as of 20:41, 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.

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/

[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