How to Disable XML-RPC in WordPress on Hostinger: Stop Brute-Force & Pingback Floods
Hostinger Web & Cloud Hosting
Get LiteSpeed Web Server, 1-click WordPress staging, and 24/7 priority live chat.
What is XML-RPC and Why is It a Security Liability?
Introduced in early versions of WordPress, xmlrpc.php allowed external applications (like the WordPress mobile app or remote blogging clients) to communicate with your site via XML requests. However, since the introduction of the official WordPress REST API in 2016, XML-RPC has become largely obsolete. Today, cybercriminals exploit XML-RPC's system.multicall method to test hundreds of password combinations in a single HTTP payload, bypassing standard login attempt rate limiters and consuming 100% of your server CPU.
Method 1: Blocking XML-RPC via .htaccess in Hostinger hPanel
Open Hostinger hPanel -> File Manager, locate public_html/.htaccess, and paste this block at the very top:
# Block WordPress XML-RPC Attacks
<Files xmlrpc.php>
order deny,allow
deny from all
</Files>
Method 2: Blocking via Cloudflare WAF
If you route your domain through Cloudflare, create a custom WAF Firewall Rule: (http.request.uri.path eq "/xmlrpc.php") -> Action: Block. Malicious requests will be dropped at the Cloudflare edge without touching your Hostinger origin server.
Editorial Verdict: Pros & Cons
What We Love (Pros)
- Instantly stops thousands of automated brute-force password guessing attempts daily
- Reduces server CPU spikes by preventing pingback and trackback denial-of-service floods
- Takes less than 60 seconds to implement with zero risk of breaking modern WordPress features
Drawbacks (Cons)
- Disabling XML-RPC prevents using the legacy third-party Jetpack mobile app features
Start Your Website on Hostinger
Includes Free SSL, Daily Backups, LiteSpeed Acceleration, and 24/7 Support.
Written by Marcus Sterling
WordPress Core Specialist
Alex and the ServerCraft engineering lab run routine benchmarks on over 25 web hosting providers, maintaining strict objectivity and reproducibility.
Recommended Next Reads
Hostinger vs Contabo VPS (2026): Real Benchmark Test & In-Depth Comparison
A comprehensive, benchmark-driven comparison between Hostinger and Contabo VPS. We tested Geekbench CPU scores, NVMe I/O, network latency, and hPanel vs CLI.
Hostinger Review (2026): Is It Truly the Best Web Hosting for the Price?
We stress-tested Hostinger's Premium and Cloud Startup plans across 180 days. Read our honest review covering uptime, LiteSpeed speed tests, and renewal fees.