[Apache] Block file xmlrpc.php của tất cả domain trong apache

Hướng dẫn cấu hình bock file xmlrpc.php trong apache

1. các bạn tạo file /etc/httpd/conf/extra/block.conf với nội dung

vi /etc/httpd/conf/extra/block.conf

nội dung

<FilesMatch "(^\.|wp-config\.php|xmlrpc\.php|(?<!robots)\.txt|(liesmich|readme)\.*)">
Require all denied
</FilesMatch>

2. Sau đó include vào apache config

Include /etc/httpd/conf/extra/block.conf

Chúc các bạn thành công.

Bình luận