Can I password protect directories?
To password protect directory:
Note: At this time, cPanel can only protect directories, not individual files. Any file that needs protection can be placed in a protected directory.
- Login into your cPanel and click on the Password Protect Directories icon, found under Security.
- Choose Web Root (and you may need to select Show Hidden Files)
- Click on the name of the directory that you wish to password protect.
- Check the box for "Password protect this directory:"
- Fill in "Name the protected directory". Actually, this is just the message that will show to visitors when they try to login, and can be anything you like.
- Click on Save button below.
- Click "Go Back"
- Fill in a Username and Password at the bottom of the page, and click "Add/modify authorized user".
- You are Done. The directory you selected is now protected by password.
Warning! This password has a maximum of 8 characters. Any characters typed beyond the first 8 will not be required by visitors.
To ensure you directory has been password protected, launch you browser and visit the folder. If the browser prompts you to login, then your directory has been password protected.
500 error after login?
Check the folder ownership on the .htpasswds folder (above public_html). Change them from user.user to user.nobody and ensure the permissions are set to 750 and then refresh your protected page. The error will be gone. Note: Shared and reseller customers will need our assistance to change any file's ownership. Please open a support ticket for this change.
Was this answer helpful?
If you run a database driven website, it is important to backup your databases, periodically. You...
UCclouds uses a maildir system, which means that all your email boxes and messages are stored as...
We support sending gzip files, or gunziping/gzipping files on the shared server. This is not the...
How can I restore my site with old/previous content? Please submit a Support Ticket and add in...
When you check the error logs, you can see many things.Some things you can ignore:File does not...