You can block access to a directory with a password using the "IP Blocked" cPanel.
1. Sign in to your cPanel account.
2. In the "Security" section, click the "IP Blocker" icon.
3. In "Add an IP or range" you must enter the IP address you want to block.
Then click the "Add" button.
Examples of use:
Unique IP address: 192.168.0.1
Range: 192.168.0.1-192.168.0.40
Default range: 192.168.0.1-40
CIDR format: 192.168.0.1/32
Implies 10.*.*.* — 192.
I hope I have helped!