XML-RPC is a common attack vector. Learn what it does and three safe ways to disable it in WordPress.
`xmlrpc.php` is a legacy WordPress endpoint that enables remote publishing and pingbacks. Attackers abuse it for brute-force and DDoS amplification.
If you don't use the WordPress mobile app or Jetpack features that require it, XML-RPC is pure risk.
<Files xmlrpc.php>
Order Deny,Allow
Deny from all
</Files>
location = /xmlrpc.php { deny all; }
Wordfence, iThemes Security and others can disable XML-RPC with one toggle.