Password protected folder in cPanel
Added: 10.03.2014 23:26:29 Last updated: 11.01.2017 21:34:46
The guide details how to proceed to password protect a folder on your web hosting account.
Click on the icon for "Directory privacy" as shown in the screenshot below:
- Choose which folder to base it on, when you define the password protected folder. "Web root" equals the folder "/public_html".
- Choose which domain it applies to. If you administer several domain names they will be visible in the list here.
- Click "Go" to move on.
Choose which folder you want to protect with a password. We choose the folder "private".
Under "Security settings":
- Tick off for this folder to be password protected.
- Type the name you want for the folder.
- Click "Save"
The actual folder is now protected. We must create at least one user with a password to get access to the folder. Click on the link "Go back".
Under "Create user":
- Type wanted username
- Type wanted password, twice, for the new user.
- Click the "Save" button.
We have created a user with a password which has access to the protected folder we chose in step 2. Click "Go back".
Under "Autorized users" you can see which users have access to the actual folder at any time. To delete users who shouldn’t have access anymore, you click on the user so it’s marked with a blå background. Then click on the "Delete user" button.
We have now protected a folder and created a user with a password that has access to the protected folder. You can create several users if you want by going back to step 6.