How to Use Directory Privacy in cPanel
Posted about 4 months ago 3.8kPassword Protect Folders
Basic auth: Simple username/password protection.
Protect a Directory
cPanel → Files → Directory Privacy → Select folder → Enable protection.
Create Authorized Users
Add username and password for access.
Advanced Options
Custom Authentication Message
Set friendly name (e.g., "Client Portal Login").
Common Use Cases Table
| Use Case | Folder |
|---|---|
| Client files | /clients/ |
| Staging site | /staging/ |
| Admin tools | /tools/ |
| Downloads | /private-downloads/ |