Richard G
Verified User
I stumbled on this solution, which is to be put in the httpd.conf file of apache (I don't have nginx).
What is the best way to do this?
Copy a httpd.conf to /usr/local/directadmin/custombuild/custom/ap2 and then put this code somewhere in there? If yes where is the best place to put it in the config?
If no, what is a better solution?
Code:
<FilesMatch "^(xmlrpc\.php|wp-trackback\.php)">
Order Deny,Allow
Deny from all
</FilesMatch>
What is the best way to do this?
Copy a httpd.conf to /usr/local/directadmin/custombuild/custom/ap2 and then put this code somewhere in there? If yes where is the best place to put it in the config?
If no, what is a better solution?