Disable XML-RPC-API

Description

Pretty simply, this plugin disables the XML-RPC API on a WordPress site running 3.5 or above.

PLUGIN FEATURES

  • Disable access to xmlrpc.php file using .httacess file
  • Disable X-pingback API to minimize CPU usage
  • Remove ping back ping link from header
  • Remove and disable xmlrpc API entirely

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.

Screenshots

Installation

  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. XML-RPC-API is now disabled!

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

FAQ

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 three easy methods for checking if XML-RPC is off:
1. Easiest way is going to this url: http://yourdomain/xmlrpc.php enter your domain name instead of ‘yourdomain’ if you see “Access forbidden!” or “403 error” it’s working.
2. First, try using an XML-RPC 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.
3. Or you can try the XML-RPC Validator, written by Danilo Ercoli of the Automattic Mobile Team – the tool is available at http://xmlrpc.eritreo.it/ with a blog post about it at http://daniloercoli.com/2012/05/15/wordpress-xml-rpc-endpoint-validator/. Keep in mind that you want the validator to fail and tell you that XML-RPC services are disabled.

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.

Reviews

14 Yanvar 2021
This plug-in really does break my site. Luckily by disabling the plug-in all is restored to normal. With the plug-in enabled, pages have two lines or error code on tham and nothing else. It was working so perhaps the latest update is causing the problem. The author's home page for this plug-in is all written in Arabic with no translation available. EDIT I have now changed to another plugin and will not at this time change back again although from the comment by @alphawolf and the clear effort made by the author whose response has been first class I've uprated now to five stars. Pity that all authors don't respond with such speed
Read all 7 reviews

Contributors & Developers

“Disable XML-RPC-API” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Disable XML-RPC-API” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.0.0

  • Initial release

1.0.1

  • Fix bugs

1.0.5

  • Fix pingback link tag in header
  • Add ability to fix htaccess

1.0.6

  • Fix warnings for htaccess permission

1.0.7

  • Fix blank page when using W3 Total Cache and some other cache plugins