This feature only protects browser (HTTP/HTTPS) access. It does not restrict access through FTP, SFTP, or other file transfer methods. For FTP access controls, see FTP accounts.
Set up password protection
Open Directory Privacy
Log in to cPanel through your client area or at
yourdomain.com/cpanel. Go to Files and click Directory Privacy.Select the directory
Browse the folder list and click Edit next to the directory you want to protect. To protect a subdirectory, click the parent folder first to expand it, then click Edit next to the subdirectory.
Enable protection
Check the Password protect this directory box. Enter a label for the directory (this is just a display name, not the actual folder name). Click Save.
Manage authorized users
To see all users for a protected directory, go back to Directory Privacy, click Edit next to the directory, and scroll to the Authorized Users section.- Change a password — Enter the existing username with a new password and click Save.
- Remove a user — Select the user and click Delete User.