Skip to content

Instantly share code, notes, and snippets.

@GhazanfarMir
Created October 7, 2016 17:26
Show Gist options
  • Select an option

  • Save GhazanfarMir/99f73dd4f62d6101fd28e47639d4e832 to your computer and use it in GitHub Desktop.

Select an option

Save GhazanfarMir/99f73dd4f62d6101fd28e47639d4e832 to your computer and use it in GitHub Desktop.
Disable xmlrpc.php in WordPrrss
You can add this to your .htaccess:
# START XML RPC BLOCKING
<Files xmlrpc.php>
Order Deny,Allow
Deny from all
allow from 127.0.0.1
errordocument 401 default
errordocument 403 default
errordocument 404 default
errordocument 411 default
</Files>
# FINISH XML RPC BLOCKING
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment