Help Centre Home Web Hosting cPanel

How may I password protect web directories/folders in cPanel?

Last updated: October 14, 2020

It is possible to add password protection to your web directories/folders, making it easy to lock things down whilst in development or when keeping pages away from the general public. Using password protection will set a username and password prompt for accessing a particular directory in web browsers. It sets up a htpasswd configuration.

  1. Login to your cPanel service.
  2. Click the Directory Privacy icon.
  3. Navigate to and click Edit next to the folder you wish to protect.
  4. Check the  tickbox.
  5. Enter a name for the word protected directory.
  6. Click Save.
  7. Now click Back.
  8. Under Create User: enter the username and password combination you wish to set.
  9. Click Add/Modify authorized user.

The password protection is now in place!

Still need a bit of help?
Contact our
Sales team
Shoot our friendly team an email. You should expect a response within an hour!
Email Sales
Submit
a ticket
Login to MyZuver and start a new eTicket with one of our helpful departments.
Log Into MyZuver