XML-RPC allows mobile apps and remote connections to publish to WordPress. If you don't want to be able to post remotely to your site, follow the steps below to improve your site security.
- You should always backup your site before making any changes.
- Access the File Manager for your hosting plan. ( Web Hosting / cPanel )
- Navigate to the folder in which WordPress is installed.
- Edit the .htaccess file.
- At the bottom of the .htaccess file, insert the following lines:
<Files xmlrpc.php> Order Allow,Deny Deny from all </Files>
- Save the changes to your file.
You've now disabled access to the XML-RPC function and reduced the number of ways your site can be attacked.