Vectro Web Hosting Knowledgebase
Main ::cPanel ::Instructional How-To's
Minimize Text   Default    Enlarge Text

How do I create a password protected directory for my web site using cPanel?

This document describes step-by-step how to add a password protected directory to your web site. You must make sure the directory you want to protect already exists before you protect it. The directory you are protecting must be in your www directory or inside of another directory that is in your www directory or you will not be able to access it.


Step 1: Log in to your cPanel.

Step 2: Once you are logged in, click the 'Password Protect Directories' icon under the 'Password Protected Directories' menu.

Step 3: A new window will open that says 'File Manager Directory Selection'. Select 'Web Root (public_html/www)' and click 'Go'.

Step 4: You are now at the 'Password Protect Directories' screen. Here you will see a list of all of the directories contained in your web site. Click the name of the directory you want to protect with a password.

Step 5: You now need to activate protection for this directory and also create a name for the restricted area such as 'Protected Documents':

Security Settings:

Password protect this directory:

Place a check mark on the box by clicking it. This must be done to activate password protection.

Name the protected directory


Enter a name for the password protected directory. This is usually a descriptive name like "Confidential Documents" or "Employees Only Area". This will be displayed in the same window where the username and password are entered to let people know where they are logging in. You can also leave this field blank.

Once you have entered clicked the checkbox and entered a name Click the 'Save' button to save the information. You will be brought to a screen confirming the updated permissions. Find the link on this screen that says '[ Go Back ]' and click on it to go back to the last page. Move on to the next step to add usernames and passwords which have access to this directory.


Step 6:
Under 'Create User' Enter a username to add to this directory in the space to the right of where it says 'User Name:'.

Enter a password to add to this directory in the space to the right of where it says 'Password:'. After you have entered a username and password, click the 'Add/modify authorized user' button. You will be brought to a page confirming the creation of your username and password and you are finished. It is a good idea to visit your new password protected directory on the web to make sure it is working properly.

To add more users, repeat step 6. This can be done at any time.

If you feel you have entered all of the correct data into this form but you are still having a problem or if you receive an error, please contact support.




Related Articles
How do I remove password protection from a directory on my web site using cPanel?
This document describes step-by-step how to remove password protection from a directory. This will cause everything inside the directory to become available to the public....
How do I create an FTP account using cPanel?
Step 1: Log in to your cPanel. Step 2: Once you are logged in, click the 'FTP Accounts' icon under the 'Files' menu. Step 3: You are now at the 'FTP...
How do I install and configure b2evolution blog software on my web site using cPanel?
This document describes step-by-step how to install b2evolution on your web site. The installation is done using Fantastico which is built into cPanel. Configuration is...

 

Search Glossary Saved Articles Submit A Support Request Get Hosted at Vectro