How to Protect a Directory with Password Authentication in DirectAdmin?
It is possible to protect sensitive data in DirectAdmin with a password so that only an authorized person could have access to it.
To Set Password For a Directory in DirectAdmin:
1. Log in to the panel of your DirectAdmin account.
2. Explore the Advanced Features section and click on Password Protected Directories.
![How to Protect a Directory with Password Authentication in DirectAdmin? 1 passprot](https://visualwebtechnologies.com/blog/wp-content/uploads/2021/04/passprot.png)
3. Click on Find a Directory to Password Protect, the file manager window will open in a new tab.
![How to Protect a Directory with Password Authentication in DirectAdmin? 2 prot dir](https://visualwebtechnologies.com/blog/wp-content/uploads/2021/04/prot_dir-1024x208.png)
4. Browse and select a file or directory you want to secure with a password.
![How to Protect a Directory with Password Authentication in DirectAdmin? 3 Screenshot 1 4](https://visualwebtechnologies.com/blog/wp-content/uploads/2021/04/Screenshot_1-4-1024x192.png)
5. The moment you select a file or directory, a box showing the number of selected directories will pop-up on the top of the screen. Click on the three vertical dots on the right side of the box and then, click the Protect option.
6. The PROTECT DIRECTORY window will appear, where you can enter details for Name, User and Password. Enter the details and click the PROTECT button.
![How to Protect a Directory with Password Authentication in DirectAdmin? 4 protect details min](https://visualwebtechnologies.com/blog/wp-content/uploads/2021/04/protect_details_min.jpg)
A success message “Directory has been protected” will appear meaning your directory is now password-secured.
![How to Protect a Directory with Password Authentication in DirectAdmin? 5 dir protect succ](https://visualwebtechnologies.com/blog/wp-content/uploads/2021/04/dir_protect_succ-1024x422.jpg)
7. When you go back and refresh the Protected Directories dashboard, the list is updated with a new entry for your protected directory.
![How to Protect a Directory with Password Authentication in DirectAdmin? 6 dir list](https://visualwebtechnologies.com/blog/wp-content/uploads/2021/04/dir_list-1024x291.jpg)