How to check if XML-RPC is enabled on your site
To find out whether XML-RPC is enabled, request /xmlrpc.php on your site from outside and read the status code: 405 Method Not Allowed means the endpoint is on. XML-RPC is a remote control interface that ships with WordPress. It is enabled by default, the admin has no switch for it, and it has long been a target for attacks: the system.multicall method lets an attacker pack hundreds of login attempts into a single request, and pingback.ping has been used to bounce traffic at other sites. Many hosts and firewalls block the path for that reason. The check on this page requests /xmlrpc.php from an external server and returns the status code and the final URL, so you see how your own server responds.
Check your site
-
Request /xmlrpc.php from outside
Enter the full path, https://your-site.com/xmlrpc.php, into the checker on this page and run it. The checker sends a plain GET request from an external server, which is how a scanner sees your site. Two parts of the answer matter: the HTTP status code and the URL where the request finally landed. Use the exact domain your visitors use, with https and the correct www or non-www form. Otherwise you are testing a redirect instead of the endpoint.
-
Read the status code, especially 405
405 Method Not Allowed is the normal answer from a working XML-RPC endpoint in WordPress: the file exists, XML-RPC is enabled, and it refuses GET because it accepts only POST. Most people read 405 as "blocked", which is backwards. A 200 with the text "XML-RPC server accepts POST requests only" also means enabled; older WordPress versions answer that way without the 405 code. 403 Forbidden means something blocks the path: a server rule, a security plugin or a WAF in front of the site. Many hosts and CDNs block it by default, so after a 403 there is often nothing left to do. 404 Not Found means the file is not there, either because the site does not run WordPress or because the file was removed or renamed.
-
Check the final URL before you trust the code
If the request ended somewhere other than the /xmlrpc.php you asked for, read the code for the address where it ended up. A redirect to the home page or a login page that returns 200 means a plugin or a redirect rule is blocking the endpoint. A jump from http to https, or between www and the bare domain, is the site's canonical redirect: run the check again on the final host for a clean answer. Treat a 404 with some suspicion as well, because some firewalls answer 404 on purpose to hide the endpoint. It proves that the path does not respond, which does not always mean the file is gone.
-
Decide whether you need XML-RPC at all
Keep it only if something uses it. In practice that means Jetpack, parts of which still talk to the site over XML-RPC, incoming pingbacks and trackbacks, and older remote publishing clients: legacy desktop editors, some third-party posting and syndication tools, and old versions of the mobile apps. Current WordPress apps and most integrations use the REST API with application passwords instead. If none of this applies to your site, the endpoint does nothing for you and is worth closing. WordPress has no setting to turn it off: since version 3.5 XML-RPC is enabled by default, and only code, a plugin or a server rule can disable it.
-
Turn XML-RPC off reliably
There are three options, from the weakest to the most reliable. A security plugin: most have a single XML-RPC switch that is easy to undo, but it only acts after WordPress has loaded. A filter in code: add_filter('xmlrpc_enabled', '__return_false'); It disables only the methods that require a login. The file keeps responding, so the pingback methods and the 405 answer stay in place. A block at the server or at the edge: on Apache 2.4 or LiteSpeed put <Files "xmlrpc.php"> Require all denied </Files> in .htaccess, in nginx use location = /xmlrpc.php { deny all; }, or add a WAF rule at your CDN that matches this URI path. On shared hosting you can add the .htaccess rule through the file manager in your hosting control panel. Only the server rule stops the request before PHP starts.
-
Test that nothing you rely on broke
After the change, open the admin, publish a test post and then check whatever you decided to keep. Jetpack shows a connection error once it can no longer reach the site, which may take days, mobile and desktop publishing clients fail to log in, and automated posting or syndication tends to stop without any message. If something you need breaks, go back to the plugin switch or allow that specific service in the rule instead of blocking the path for everyone. Do not delete or rename the core file xmlrpc.php: WordPress restores it with the next update, and missing core files break integrity checks.
How to verify the result
Run the check on this page again for https://your-site.com/xmlrpc.php. A 403 means the block holds and the request is refused before it reaches WordPress. A 404 means the path no longer responds at all. If you still see 405, or 200 with "XML-RPC server accepts POST requests only", the endpoint is still open. Either the change was made only at plugin level (the xmlrpc_enabled filter leaves the file answering 405 by design), or the rule went into the wrong file or sits after another rule that already handled the request. There is one legitimate exception: if your rule blocks only POST requests, an outside GET still returns 405, so check instead whether an XML-RPC client can still log in.
Tip: A rule at a CDN or an external firewall covers only the traffic that passes through it. If your origin IP is known, /xmlrpc.php can still be reached directly, so back the edge rule with a rule on the server itself or allow connections to the origin only from your CDN's addresses. Check Jetpack before you block anything: parts of it need this endpoint, and the connection can fail days later in a way that is easy to blame on something else.