Block XML-RPC Attacks using .htaccess

Place this code inside the .htaccess file:

# Block WordPress xmlrpc.php attacks on Apache
<Files xmlrpc.php>
order deny,allow
deny from all
</Files>

Leave a Reply

Your email address will not be published. Required fields are marked *