Celebrating our 30th year online · Est. 1997 Our story → Open a ticket Status

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.

  1. In cPanel, open Files → Directory Privacy.
    Password-protect a folder or staging site, step 1
  2. Click the folder name to navigate, then click Edit next to the folder you want to protect (for example public_html/staging).
  3. Check Password protect this directory, give it a name, and click Save.
  4. 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_html itself locks your whole website.

Still stuck?

Our in-house team answers tickets 24/7.

Open a ticket

Related guides