Created
April 22, 2020 09:49
-
-
Save carl-alberto/6a76b1f537ba79abd73b052f872df939 to your computer and use it in GitHub Desktop.
Disable XML RPC in WP
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
# Block WordPress xmlrpc.php requests | |
<Files xmlrpc.php> | |
order deny,allow | |
deny from all | |
allow from 123.123.123.123 | |
</Files> |
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
<?php | |
/** | |
* Via theme's function.php or a custom plugin. | |
* | |
*/ | |
add_filter('xmlrpc_enabled', '__return_false'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment