Knowledgebase

How to Secure WordPress by Disabling XML-RPC and File Editing Print

  • 0

Block common brute-force vectors and protect theme/plugin code.

Step-by-Step Instructions

  1. Add DISALLOW_FILE_EDIT in wp-config.php.
  2. Block xmlrpc.php in .htaccess or Nginx.
define('DISALLOW_FILE_EDIT', true);
# Nginx:
location = /xmlrpc.php { deny all; }

Pro Tip: Only keep XML-RPC enabled if you actively use the Jetpack mobile app.

Need assistance? Open a ticket in the A1 Client Area or contact our 24/7 NOC Engineering Team on WhatsApp at +1 (406) 229-9597.


Was this answer helpful?

« Back