Protect a Directory with a password using cPanel.

CREATE PROTECTION

1. Enter as administrator into cPanel

2. Security> Directory Password

3. Directory Selection> Web Root> Go

4. Click the Directory you want to protect

5. Check ‘Password protect this directory’
Name the protected directory: give it a name
Save

6. Go Back>
Create User:
Username: give it
Password: give it
Add/Modify Authorized User

Perfect, try to access the files inside the directory, now you need Username and Password

REMOVE PROTECTION

1. Enter as administrator into cPanel

2. Security> Directory Password

3. Directory Selection> Web Root> Go

4. Click the Directory you want to protect

5. Uncheck ‘Password protect this directory’

6. Remove active users if you want