Overview:
Want to protect a specific folder on your website with a password? The Directory Privacy feature (formerly called Password Protect Directories) helps you do just that.
Steps to Set It Up:
-
Log in to your cPanel.
-
Under the Files section, click Directory Privacy.
-
Click the folder you want to protect (e.g.,
/private
or/admin
). -
Tick the box that says Password protect this directory.
-
Set a name for the protected area.
-
Create a username and password for access.
That’s it!
Now when someone tries to visit that folder, they’ll need to log in.
Use Cases:
-
Hide your website under construction.
-
Protect admin panels or private documents.