Securely Block Exclusive Content
With the Directory Privacy feature, you can protect individual folders on your website with a password. This is ideal for internal documents, staging environments, or exclusive download areas for your customers. Once the protection is active, every visitor will be asked for a username and password when accessing the directory.
Setting Up Password Protection
- In cPanel, navigate to Security » Directory Privacy.
- Select the directory you wish to protect. Click the folder icon to navigate deeper into the structure, or click the folder name to select it.
- Check the box "Password protect this directory".
- Enter a name for the protected directory (this will be displayed to the visitor in the login window).
- Click Save.
Adding Users
Once protection is enabled, you must create authorized users:
- Under Create User, enter a desired username.
- Assign a strong password (it is best to use the password generator).
- Confirm by clicking Save.
Important Management Notes
You can create as many users as you like for the same folder. Each user will receive their own login credentials.
Protection is automatically inherited by all subfolders, unless you configure a different setting there.
To remove password protection, simply uncheck the box in the same menu and save again.
Combine this feature with Leech Protection to ensure that
users do not share their passwords with unauthorized third parties.