Password Protect Directories in cPanel with your Dedicated / Cloud Server
Log into cPanel on your dedicated or cloud server.
- Click on the Password Protect Directories icon found under Security.
- Choose Web Root (you may also 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 field. This will be the message shown to visitors when they try to login and can be anything you like.
- Click on the Save button below.
- Click Go Back.
- Fill in a Username and Password at the bottom of the page, and click Add/modify authorized user.
To ensure your directory has been password protected, launch your browser and view the directory. If the browser prompts you to login, then your folder has been password protected.
Cpanel have a 8 character limitation. Any characters typed beyond the first 8 will not be required by visitors.