> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.serverfreak.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to Password Protect a Directory in cPanel

1) Login to cPanel at http://yourdomain.com/cpanel


2) Go to the Files section and click on the **Directory Privacy** icon.
![](https://storage.crisp.chat/users/helpdesk/website/0e35a1b5-ce97-4d12-a27e-1bbafd0ae641/05b0b014-05d8-4a61-bb3a-16acc6e326c3.png)


3) Click on the desired folder you wish to protect.


4) Next, click on the checkbox labeled **Password protect the directory**.

Make sure you have a name for the folder you are going to protect.

![](https://storage.crisp.chat/users/helpdesk/website/0e35a1b5-ce97-4d12-a27e-1bbafd0ae641/c185c0d1-b234-4481-be74-2f16e523d5de.png)




5) Next create a user to access the protected directory.

![](https://storage.crisp.chat/users/helpdesk/website/0e35a1b5-ce97-4d12-a27e-1bbafd0ae641/70ee333d-6dce-4783-be2d-f6e43d853196.png)




6) Click **Save** in order to save the user that you have edited.





