How to password protect files and directories in cPanel?

  1. Log in to your cPanel account
  2. Go to Files section
  3. Choose Directory Privacy menu:

 

 

Choose the directory you want to protect:

 

In Security Settings section give a name to the protected directory and check-mark Password protect this directory option:

 

 

 

In Create User section specify the username and the password that should be used to access this directory: