Require a username and password before anyone can view a folder.
- Log in to cPanel.
- Go to Files > Directory Privacy (or Password Protect Directories).
- Navigate to and select the folder you want to protect.
- Tick Password protect this directory, give it a name, and Save.
- Create a user: enter a username and password under Create User, then Save.
Tip: Use this to protect a staging area, a private download folder, or your WordPress wp-admin for an extra layer over the login (article 148).
