Bilgi Bankası

How to password protect a directory

Password protecting a directory is useful if you want to limit the access to part of your website. By setting a password, you will limit access to only those who you give access to via a username and password.

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.

password protect directory image 1

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.

password protect directory image 2

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.

password protect directory image 3

If the password is not properly used or known, an unauthorized message will appear.

password protect directory image 3

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.
  • 7930 Bu dökümanı faydalı bulan kullanıcılar:
Bu cevap yeterince yardımcı oldu mu?

İlgili diğer dökümanlar

How to edit the website in file manager

To edit your website using file manager, log into cPanel and scroll down to the Files...

How to set up SpamAssassin and reduce email spam

SpamAssassin is a computer program used for email spam filtering. It is extemely easy to set up...

How to set up a new email account

Control Panel offers the ability to set up and edit your own email accounts directly associated...

How to Add Change or Remove DNS Records

Editing your DNS is extremely simple. All you have to do is add the information and our servers...

How to sync files on your computer with your site

You can create a Web Disk account to manage, navigate, upload, and download the files on your web...