Articles on: cPanel

How do I password protect a directory/folder on my website?

How do I password protect a directory/folder on my website?

Login to your cPanel

In Files, choose "Directory Privacy".




Click the icon to open a folder. Click the name to select a folder.



Click on the name of the folder to bring up the Security Settings screen.



Check the box for Password protect this directory and enter a name for your protected directory.



Click Save

Go to Create User

Type in your Username and Password



Click Save

Once you're done, you should see your username under the list of authorized users.

Repeat the last step for any extra usernames you would like to add.

Also, any information or links under the folder you password protect will ask you for the password again.

Note: Set a password to protect certain directories of your account. When you enable this feature, a user that tries to open a protected folder will be prompted to enter a username and password before they can access your content.

Updated on: 20/09/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!