How to protect a directory in cPanel:
- Log into your cPanel account.
- Look for Directory Privacy option
- Click on the directory you want to protect by username and password.
- On the new page that will open, complete the field Enter a name for the protected directory: You can enter something like my area, protected area etc.
- On the same page choose a Username and New Password. Click the Save button. From now on, you will need to enter the username and password when accessing that directory.
Check our video tutorial below.