Home / Help Center / Websites & WordPress
Password-protect a folder or staging site
Put a username and password in front of any part of your site.
- In cPanel, open Files → Directory Privacy.

- Click the folder name to navigate, then click Edit next to the folder you want to protect (for example
public_html/staging). - Check Password protect this directory, give it a name, and click Save.
- Under Create User, add a username and password that visitors will use, then click Save.
Tips
- Great for staging sites, client previews and private downloads.
- Protecting
public_htmlitself locks your whole website.
Still stuck?
Our in-house team answers tickets 24/7.