Chức năng này cho phép bạn bảo vệ các thư mục của tài khoản cPanel. Sau khi bật tính năng này cho một thư mục, người dùng cố gắng xem thư mục đó qua một trang web, hệ thống sẽ yêu cầu họ đăng nhập.
Khi bạn đặt mật khẩu cho một thư mục đồng nghĩa với việc bạn đặt mật khẩu cho các file và thư mục con bên trong thư mục này
Bạn đăng nhập Cpanel theo hướng dẫn sau: https://wiki.tino.org/docs/huong-dan-truy-cap-bang-dieu-khien-cpanel/
Và truy cập Files >> Directory Privacy
![[cPanel] Hướng dẫn tạo mật khẩu thư mục trên hosting (Directory Privacy) 1 tao-mat-khau-thu-muc-tren-hosting](https://wiki.tino.org/wp-content/uploads/2022/07/1-Directory-Privacy-1024x435.jpg)
Tạo mật khẩu cho thư mục
Bạn chọn thư mục muốn tạo mật khẩu, ví dụ bạn muốn tạo mật khẩu cho thư mục wp-admin trong thư mục blog.tinohost.xyz, bạn truy cập thư mục blog.tinohost.xyz
![[cPanel] Hướng dẫn tạo mật khẩu thư mục trên hosting (Directory Privacy) 2 tao-mat-khau-thu-muc-tren-hosting](https://wiki.tino.org/wp-content/uploads/2022/07/2-Directory-Privacy-edit-1-1024x678.jpg)
Tại thư mục wp-admin bạn chọn Edit
![[cPanel] Hướng dẫn tạo mật khẩu thư mục trên hosting (Directory Privacy) 3 tao-mat-khau-thu-muc-tren-hosting](https://wiki.tino.org/wp-content/uploads/2022/07/2-Directory-Privacy-edit-1-1-1024x540.jpg)
Bạn chọn vào mục “password protect this directory” và bấm save
![[cPanel] Hướng dẫn tạo mật khẩu thư mục trên hosting (Directory Privacy) 4 tao-mat-khau-thu-muc-tren-hosting](https://wiki.tino.org/wp-content/uploads/2022/07/2-Directory-Privacy-edit-2-1-1024x515.jpg)
Sẽ xuất hiện thông báo hệ thống đã cài đặt quyền truy cập cho thư mục wp-admin
![[cPanel] Hướng dẫn tạo mật khẩu thư mục trên hosting (Directory Privacy) 5 tao-mat-khau-thu-muc-tren-hosting](https://wiki.tino.org/wp-content/uploads/2022/07/2-Directory-Privacy-edit-3-1-1024x261.jpg)
Tiếp tục bạn tạo một user có quyền truy cập thư mục wp-admin và bấm Save
![[cPanel] Hướng dẫn tạo mật khẩu thư mục trên hosting (Directory Privacy) 6 tao-mat-khau-thu-muc-tren-hosting](https://wiki.tino.org/wp-content/uploads/2022/07/2-Directory-Privacy-edit-4-1-1024x849.jpg)
Hệ thống thông báo đã cài đặt mật khẩu cho user
![[cPanel] Hướng dẫn tạo mật khẩu thư mục trên hosting (Directory Privacy) 7 tao-mat-khau-thu-muc-tren-hosting](https://wiki.tino.org/wp-content/uploads/2022/07/2-Directory-Privacy-edit-5-2-1024x269.jpg)
Kéo xuống mục Authorized Users, bạn sẽ thấy user blogtinohost đã tạo
![[cPanel] Hướng dẫn tạo mật khẩu thư mục trên hosting (Directory Privacy) 8 tao-mat-khau-thu-muc-tren-hosting](https://wiki.tino.org/wp-content/uploads/2022/07/2-Directory-Privacy-tc-1-1024x754.jpg)
Sau đó bạn truy cập vào blog.tinohost.xyz sẽ thấy biếu tượng ổ khóa có trạng thái là Yes tại thư mục wp-admin
![[cPanel] Hướng dẫn tạo mật khẩu thư mục trên hosting (Directory Privacy) 9 tao-mat-khau-thu-muc-tren-hosting](https://wiki.tino.org/wp-content/uploads/2022/07/2-Directory-Privacy-tc-6-1024x534.jpg)
Sử dụng trình duyệt web truy cập link htttps://blog.tinohost.xyz/wp-admin, bạn sẽ thấy hệ thống yêu cầu bạn phải đăng nhập
![[cPanel] Hướng dẫn tạo mật khẩu thư mục trên hosting (Directory Privacy) 10 tao-mat-khau-thu-muc-tren-hosting](https://wiki.tino.org/wp-content/uploads/2022/07/3-Directory-Privacy-login-1024x303.jpg)
Xóa mật khẩu
Để gỡ bỏ mật khẩu bạn chọn user và bấm Delete User
![[cPanel] Hướng dẫn tạo mật khẩu thư mục trên hosting (Directory Privacy) 11 tao-mat-khau-thu-muc-tren-hosting](https://wiki.tino.org/wp-content/uploads/2022/07/4-Directory-Privacy-delete-1024x750.jpg)
hệ thống thông báo đã xóa bỏ quyền truy cập cho user
![[cPanel] Hướng dẫn tạo mật khẩu thư mục trên hosting (Directory Privacy) 12 tao-mat-khau-thu-muc-tren-hosting](https://wiki.tino.org/wp-content/uploads/2022/07/4-Directory-Privacy-delete-2-1024x264.jpg)
Sau đó bạn truy cập vào blog.tinohost.xyz, chọn Edit tại wp-admin
![[cPanel] Hướng dẫn tạo mật khẩu thư mục trên hosting (Directory Privacy) 13 tao-mat-khau-thu-muc-tren-hosting](https://wiki.tino.org/wp-content/uploads/2022/07/4-Directory-Privacy-delete-3-1024x538.jpg)
Bạn bỏ chọn mục “password protect this directory” đi và bấm Save
![[cPanel] Hướng dẫn tạo mật khẩu thư mục trên hosting (Directory Privacy) 14 tao-mat-khau-thu-muc-tren-hosting](https://wiki.tino.org/wp-content/uploads/2022/07/4-Directory-Privacy-delete-4-1024x468.jpg)
Hệ thống thông báo đã xóa bỏ mật khẩu, bạn bấm Go Back. Khi truy cập blog.tinohost.xyz >> wp-admin, bạn sẽ thấy thư mục sẽ mất biểu tượng ổ khóa và trạng thái chuyển sang No
![[cPanel] Hướng dẫn tạo mật khẩu thư mục trên hosting (Directory Privacy) 15 tao-mat-khau-thu-muc-tren-hosting](https://wiki.tino.org/wp-content/uploads/2022/07/4-Directory-Privacy-delete-5-1024x269.jpg)
Chúc bạn thao tác thành công!