Thứ Hai, 11 tháng 5, 2015

Bảo vệ thư mục AdminCP của Xenforo bằng .htpasswd


Bước 1: Tạo file .htpasswd , các bạn có thể vào đây: http://www.htaccesstools.com/htpasswd-generator/ để tạo. Sau đó đặt .htpasswd ở đâu tùy các bạn

Bước 2: Chèn code sau vào file .htaccess
<files admin.php>
AuthName "Ban phai nhap username va pass de tiep tuc"
AuthType Basic
AuthUserFile /home/www.vnnivt.com/abcxyz/files/.htpasswd
require valid-user
</files>

/home/www.it-24h.com/abcxyz/files/.htpasswd: đường dẫn tới file .htpasswd

Không có nhận xét nào:

Đăng nhận xét