WordPress: should I disable XML-RPC? Print

  • 0

XML-RPC is an old WordPress feature that lets the site be controlled remotely (apps and remote publishing). Today almost nobody needs it, and it is widely used in attacks: mass password-guessing attempts and using your site to attack other sites (pingback).

Our recommendation: if you don't use the WordPress app or integrations that depend on it, disable it.

  • From the WordPress dashboard: install and activate a plugin such as “Disable XML-RPC”.
  • Apache server: add this to your site's .htaccess file:
    <Files xmlrpc.php>
      Require all denied
    </Files>
  • Nginx server: add location = /xmlrpc.php { deny all; } to your site's server block and reload Nginx.

On the VPS, application security is up to you (you have root access).


Was this answer helpful?

« Back

Powered by WHMCompleteSolution