Monday, 14 March 2016

Blocking xmlrpc attack via .htaccess

You can add the below code to your .htaccess file to block POST requests to xmlrpc.php file due to excessive brute force attacks :

ErrorDocument 403 default
<Files xmlrpc.php>
    <Limit POST>
        Order deny,allow
        Deny from all
    </Limit>
</files>

No comments:

Post a Comment