I am using the technique here ( https://help.poralix.com/articles/how-to-block-access-to-xmlrpc-php-serverwide-on-directadmin ) to disable xmlrpc.php, but I would like to enable it for one site only. How do I do that?
The technique is to add
to four files in /usr/local/directadmin/data/templates/custom/ : virtual_host2.conf.CUSTOM.4.post, virtual_host2_secure.conf.CUSTOM.4.post, virtual_host2_secure_sub.conf.CUSTOM.4.post, virtual_host2_sub.conf.CUSTOM.4.post
The technique is to add
Code:
<Location ~ "/xmlrpc.php">
Order allow,deny
Deny from all
ErrorDocument 403 "Sorry, you are not allowed to view this page!"
</Location>
to four files in /usr/local/directadmin/data/templates/custom/ : virtual_host2.conf.CUSTOM.4.post, virtual_host2_secure.conf.CUSTOM.4.post, virtual_host2_secure_sub.conf.CUSTOM.4.post, virtual_host2_sub.conf.CUSTOM.4.post