Home WebServer PanelDirectAdmin How to set up Password Protected Directories on DirectAdmin

How to set up Password Protected Directories on DirectAdmin

by Thạch Phạm
Published: Last Updated on
A+A-
Reset

This feature allows you to set up a password to protect important folders on your web hosting, like the admin folder, or when you don’t want anyone to access your website. When enabling this feature, the system will ask for a username and password to be able to access that folder.

This is very effective protection to prevent unauthorized access, if someone does not have your DirectAdmin information, it is almost impossible to access that folder.

Set up Password Protected Directories on DirectAdmin

Step 1: Set up Password Protected Directories

First, go to DirectAdmin => Advanced Features => Password Protected Directories.

Protect DA

Next, select ADD PROTECTED DIRECTORY.

Password Protected Directories

Next in the Path pane, DirectAdmin will list directories related to existing websites on your server. Now I will make a tutorial with the website hd.azdigi.info.

For example, I will proceed to lock the folder containing the data of the website hd.azdigi.info, then you click on the green arrow in the hd.azdigi.info box to drop the subfolders inside. And the directory containing the data of the website hd.azdigi.info is public_html.

To lock, you tick on the public_html folder. Or if you need to lock other folders, you can click the arrow to pop out.

  • (1) & (2): You tick in the folder you want to lock.
  • (3): Set the user name for folder lock.
  • (4): Set password for folder lock.

Once you have filled in all the information, click PROTECT to complete the setup.

Password Protected Directories
Protect DA3

After the setup is complete, if you need to edit information such as deleting/editing/adding or changing the original configuration information, you can access Advanced Features => Password Protected Directories.

Password Protected Directories

Click on the configuration path to change and edit.

Password Protected Directories

Step 2: Check the setup

After successfully setting up Password Protected Directories, check your results.

So I have configured Password Protected Directories for the directory containing the data of the website hd.azdigi.info. Now I will access the website in the browser to check the results. Below are the results before and after my configuration, which was successful.

Password Protected Directories

Above are details on how to set up Password Protected Directories on DirectAdmin. In some cases, if you want to display data on the internet but want to limit who can access and view that data, then this will be a useful and simple solution for you.

You can refer to other instructions at the link below:

If you need assistance, you can contact support in the ways below:

Đánh giá

Tham gia nhóm hỗ trợ Server - Hosting

Tham gia nhóm Hỗ trợ Server - Hosting & WordPress để cùng nhau hỏi đáp và hỗ trợ các vấn đề về WordPress, tối ưu máy chủ/server.

Tham gia ngay

Bài viết cùng chuyên mục

AZDIGI – Không chỉ là đơn vị hàng đầu trong lĩnh vực Web Hosting và Máy chủ, chúng tôi mong muốn mang lại những kiến thức bổ ích nhất và luôn cập nhật thường xuyên cho cộng đồng người đam mê thiết kế website, công nghệ,…

Vui lòng không sao chép nội dung nếu chưa xin phép. Designed and Developed by PenciDesign