Disable XML-RPC in WordPress

Disable XML-RPC in WordPress

Disable XML-RPC in WordPress

1: Go to File Manager in WordPress or Hosting.

2: Open the .htaccess file in the public_html folder.

Disable XML-RPC in WordPress 1

3: Paste this code in the .htaccess file at the end.

Code:
<Files xmlrpc.php>

Order Allow,Deny

Deny from all

</Files>

Disable XML-RPC in WordPress 2

4: Save the file.

5: Now check whether XML-RPC is disabled or not.

Example: https://walikhankakaro.com/xmlrpc.php

Disable XML-RPC in WordPress 3

6: Don’t use this to try on another website; always use your personal website or system to test how it works.

How to check if XML-RPC is enabled

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top