Created
September 2, 2016 09:36
-
-
Save spyesx/32f2caaa772551567a87f690404ed004 to your computer and use it in GitHub Desktop.
Disable XML RPC Ping back to protect Wordpress from DDOS
This file contains hidden or 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 | |
add_filter( 'xmlrpc_methods', function( $methods ) { | |
unset( $methods['pingback.ping'] ); | |
return $methods; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment