Last active
April 15, 2019 21:33
-
-
Save schutzsmith/158e0aa9e0fcd95de1d441e36cb3990b to your computer and use it in GitHub Desktop.
Remove XML RPC in WordPress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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