cPanel › Files › Directory Privacy
- Log in to cPanel.
- In the Files section, click Directory Privacy.
- Click folder names to find the folder you want to protect, then click Edit next to it.
- Tick Password protect this directory, enter a name for it and click Save.
- Go back, then under Create User enter a Username and Password for the people you want to let in.
- Click Save.
Visitors to that folder now have to enter the username and password.
Protecting public_html itself protects your whole website, so choose a sub-folder unless that’s what you want.
Can’t find it? Type the tool’s name into the search box at the top of cPanel.