- Log in to your WordPress admin dashboard using yourdomain/wp-admin
- Go to Plugins
- Search for Disable XML-RPC using the search box in the top right corner and install it
- Once the plugin is installed, click on Activate to activate the plugin on your site and the xml-rpc.php file should be disabled
- And you’re all set. This plugin will automatically insert the necessary code to turn off XML-RPC.
- Find and edit the .htaccess file within file manager or use your FTP client to locate this file.
- You may have to turn on the ‘show hidden files’ to access .htaccess.
- In the top right of the File Manager, click on Settings and check the button “show hidden files.”
- Click save and you will now see your .htaccess file.
- Open up your .htaccess file.
- Paste the following code inside your .htaccess file: