Can I password-protect a directory using the cPanel interface?
You can password-protect a directory using the Directory Privacy feature in the cPanel interface. This feature uses .htaccess and htpasswd configurations to limit access to specific files and directories on your websites. Note that this will also limit access to subdirectories within the password-protected directory.
Further information can be found in our documentation: Directory Privacy