Discover, trust, install: FAIR 1.0 is here

Plugin Banner

Disable XML-RPC

by Phil Erb

Version: 1.0.1

Download
Description

Pretty simply, this plugin uses the built-in WordPress filter “xmlrpc_enabled” to disable the XML-RPC API on a WordPress site running 3.5 or above.

Beginning in 3.5, XML-RPC is enabled by default. Additionally, the option to disable/enable XML-RPC was removed. For various reasons, site owners may wish to disable this functionality. This plugin provides an easy way to do so.

  1. Upload the disable-xml-rpc directory to the /wp-content/plugins/ directory in your WordPress installation
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. The WordPress XML-RPC methods are now disabled!

To re-enable XML-RPC, just deactivate the plugin through the ‘Plugins’ menu.

View the FAQ about “How do I know if the plugin is working?” to verify that this is working as intended.

  1. An example of the error that the WordPress mobile app will return when this plugin is enabled. This is expected and indicates that the plugin is working as intended.

    An example of the error that the WordPress mobile app will return when this plugin is enabled. This is expected and indicates that the plugin is working as intended.

  2. An example of a curl command attempting to request data via XML-RPC calls to the site when the plugin is enabled. The error "XML-RPC services are disabled on this site" is expected and indicates that the plugin is working as intended.

    An example of a curl command attempting to request data via XML-RPC calls to the site when the plugin is enabled. The error "XML-RPC services are disabled on this site" is expected and indicates that the plugin is working as intended.

  3. An example of Danilo Ercoli's XML-RPC validator run against the site when the plugin is enabled. The error "Method not allowed" is expected and indicates that the plugin is working as intended.

    An example of Danilo Ercoli's XML-RPC validator run against the site when the plugin is enabled. The error "Method not allowed" is expected and indicates that the plugin is working as intended.

Is there an admin interface for this plugin?

No. This plugin is as simple as XML-RPC is off (plugin activated) or XML-RPC is on (plugin is deactivated).

How do I know if the plugin is working?

There are a few easy methods for checking if XML-RPC is off:

  1. Try using an XML-RPC WordPress client, like the official WordPress mobile apps. The WordPress mobile app should tell you that “XML-RPC services are disabled on this site” if the plugin is activated.
  2. Use the curl command to send an XML-RPC request to your site. If the response contains “XML-RPC services are disabled on this site” then the plugin is working properly and WordPress will not send data back to XML-RPC requests.
  3. Try the XML-RPC Validator, written by Danilo Ercoli of the Automattic Mobile Team – the tool is available at https://xmlrpc-check.hostpress.me/. Information and source code for the tool are available on GitHub at https://github.com/daniloercoli/WordPress-XML-RPC-Validator. Keep in mind that you want the validator to fail and tell you that XML-RPC services are disabled.

See the screenshots for examples of what these tools will return when the plugin is enabled.

Something doesn’t seem to be working correctly

If the plugin is activated, but XML-RPC appears to still be working … OR … the plugin is deactivated, but XML-RPC is not working, then it’s possible that another plugin or theme function is affecting the xmlrpc_enabled filter. Additionally, server configurations could be blocking XML-RPC (i.e. blocking access to xmlrpc.php in the .htaccess file).

Reduced to perfection

By art-at-tec (lrnz) on April 9, 2024

Dead simple as it should be. Nice, thank you for that.

Perfect plugin on updated WP version

By zaririnatma on February 10, 2024

It works perfectly on WordPress 6.4.3 (tested in 2 sites), without plugins conflict. See the tab FAQ to check that after instal, just test it on website quoted there: (xmlrpc-check) - if the test returns Fail on check xmlrpc the plugin worked. You can also run that test BEFORE instal the plugin to prove its work.

Does not work with WordPress 6.4.2

By kuzavas on January 18, 2024

Does not work with WordPress 6.4.2, xmlrpc-check tool still shows "All XML-RPC methods are available on the server"

Great Plugin

By charmingdoggo on December 19, 2023

Works perfect and is easy to use

No adware

By tomhung on September 9, 2022

No adware

Not working (WP 5.8.3)

By LeTraceurSnork (letraceursnork) on February 4, 2022

It just doesn't working

Excellent product!

By ryazhari on August 18, 2021

I have used this product on a dozen of the websites I have built and have had positive results without exception. This plugin simplifies the process of securing my websites by disabling XML-RPC, and has worked on all versions of WordPress I have used it with over the past couple of years. Great product, Highly recommended!

Plugin working fine on WP 5.6

By Felipe Romero (feliperomero) on December 11, 2020

Plugin is working just fine on WordPress 5.6. Cheers.

Not working

By advantagen on June 5, 2020

I'll add my voice to the growing choir of people saying this plugin no long works, unfortunately. At least not with WordPress v5.4.1. On the plus, all one has to do is change the permission of the xmlrpc.php (in the root of any WordPress domain) to 600, and problem solved.

Not working now

By iamphree on September 2, 2019

xmlrpc.php file Still alive

1.0.1

  • Blank lines removed from the plugin file.

1.0

  • Initial release
  • Version:Version: 1.0.1
  • Active installs:Active installs: 100K
  • Last updated:Last updated: 1 month ago
  • Requires:Requires: 3.5
  • Tested:Tested: 6.8.2
Average rating:4.3 out of 5 stars.
  • Number of ratings: 24 ratings
  • Number of ratings: 0 ratings
  • Number of ratings: 0 ratings
  • Number of ratings: 0 ratings
  • Number of ratings: 5 ratings
Back to top