Start by logging in to cPanel.
Under the files section, select Directory Privacy. Alternatively, you can enter "directory privacey" in the search bar at the top of the homepage.
![pwpd1 password protect directory image 1](https://tserverhq.com/images/guides/pwpd1.gif)
Select the folder you wish to protect. On the next page, enter a name for the dirctory and check "password protect this directory". **This is only a label the users will see when accessing the site and not to be confused with the actual name of the directory.** After you have entered the name, you will see a sucess notification.
![pwpd2 password protect directory image 2](https://tserverhq.com/images/guides/pwpd2.gif)
Click go back.
Now you will need to create a username and password for the directory.
Viewers of this directory will now see this username and password prompt.
![pwpd3 password protect directory image 3](https://tserverhq.com/images/guides/pwpd3.gif)
If the password is not properly used or known, an unauthorized message will appear.
![pwpd4 password protect directory image 3](https://tserverhq.com/images/guides/pwpd4.gif)
That's it! You have successfully password protected a directory. If you have any questions, please contact us and we will be happy to help.