Skip to content

Instantly share code, notes, and snippets.

@schutzsmith
Last active April 15, 2019 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schutzsmith/158e0aa9e0fcd95de1d441e36cb3990b to your computer and use it in GitHub Desktop.
Save schutzsmith/158e0aa9e0fcd95de1d441e36cb3990b to your computer and use it in GitHub Desktop.
Remove XML RPC in WordPress
//add to functions.php
add_filter( 'xmlrpc_enabled', '__return_false' );
//add to .htaccess
# Block WordPress xmlrpc.php requests
<Files xmlrpc.php>
order deny,allow
deny from all
</Files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment