XML-RPC is exploited for DDoS and brute force attacks. Most sites don’t need it – disable for security.
Add to .htaccess:
# Block xmlrpc.php
<Files xmlrpc.php>
Order Deny,Allow
Deny from all
</Files>
Or Use Plugin:
Install “Disable XML-RPC” plugin (one-click disable)
Check If You Need It:
XML-RPC is only needed for:
- Jetpack plugin
- Mobile apps (WordPress iOS/Android)
- Remote publishing tools
If you don’t use these, safe to disable. Blocks thousands of attack attempts.
