Skip to the content
Start free

XML-RPC is switched on

xmlrpc.php answers, and password guessers like it because it can try many passwords in a single request.

Low priority Security and HTTPS

Why it matters #

xmlrpc.php is an older interface for publishing from other apps. Password-guessing tools use it because one request can try many passwords, which gets round simple limits on sign-in attempts. It has also been used to make sites send floods of pingbacks to others.

WordPress's own guide on brute-force attacks suggests turning it off if you do not use it.

How to fix it #

If no app or service needs it, block /xmlrpc.php at your host, firewall or with a security plugin. Some apps, such as the WordPress mobile app and some connection plugins, still use it, so check before you block it.

If you need it, limit how often it can be called. Check again with the WordPress Security Checker.

What it looks like, and fixed #

The problem
GET https://www.example.com/xmlrpc.php
200 OK
XML-RPC server accepts POST requests only.

The interface is switched on and answering.

Fixed
location = /xmlrpc.php {
    deny all;
}

The address now answers 403. On Apache: <Files "xmlrpc.php"> Require all denied </Files>.

Fix it with your AI assistant #

Paste this into ChatGPT, Claude, Gemini or your coding agent. Fill in the words in [square brackets] first. It checks before it changes anything, changes only this, and tells you how to prove it worked.

Your instruction for the AI
Help me reduce password-guessing on [your website address], a WordPress site on [your host, e.g. nginx or Apache, maybe with Cloudflare in front]. A checker says /xmlrpc.php answers. Password-guessing tools like it because one request can try many passwords. First check: ask me which plugins, apps and services I use that publish to or connect with the site, such as some connection plugins or older publishing apps, and tell me which of them may still need XML-RPC. Explain plainly whether it looks safe to block. Then give me the exact change: block /xmlrpc.php at the server, CDN or with a security plugin; or, if something needs it, limit how often it can be called. Rules: back up configuration first, block only this one address, keep the REST API and admin-ajax.php working, and keep all other rules. Give exact lines or settings and where they go, and how to test that my apps still work. Finally, tell me to re-check with the URSY.com WordPress Security Checker at ursy.com/wordpress-security-checker/.

We find the problems, and help you fix them

  1. Check Run a free tool or the full audit.
  2. Fix it with your AI Download your AI Fix Pack and drop it into ChatGPT, Claude or Gemini. A free account is enough.
  3. Re-check Come back, check again, and watch each fix turn green.

How the AI Fix Pack works, with a sample to download

Fix it on your platform #

WordPress

Many security plugins can switch XML-RPC off. The xmlrpc_enabled filter alone switches off only the methods that need a password, so pingbacks still work; blocking the file is more complete.

Your server or hosting

Block /xmlrpc.php in the nginx or Apache configuration, or ask your host.

Your CDN (for example Cloudflare)

On Cloudflare, a WAF custom rule can block requests to /xmlrpc.php, or rate limit them if you still need it.

Check it is fixed #

Open /xmlrpc.php: it should answer 403 or not be found. Run the WordPress Security Checker again and it should no longer report XML-RPC as on.

Official source #

WordPress.org: Hardening WordPress

Questions #

Will blocking it break my site?

Normal pages, the editor and the REST API do not use it. Only apps or plugins that still connect through XML-RPC are affected, so check yours first.

Are pingbacks worth keeping?

Most sites get mainly spam from them. Blocking xmlrpc.php also stops your site being used to send pingback floods to others.

More problems in Security and HTTPS

See every problem in the library

For AI assistants and developers: Instructions for AI · Developers · How to cite URSY.com