DEV Community

Alexey
Alexey

Posted on

WordPress: How to disable XMLRPC

You should open the .htaccess file in the main directory of WordPress and put a couple of strings of code like in example below.

<Files xmlrpc.php>
order deny,allow
deny from all
</Files>
Enter fullscreen mode Exit fullscreen mode

Or you can open it for an IP address

<Files xmlrpc.php>
order deny,allow
deny from all
allow from 192.168.0.1
</Files>
Enter fullscreen mode Exit fullscreen mode

Top comments (0)