Created
March 13, 2014 12:40
-
-
Save gabrieleromanato/9527684 to your computer and use it in GitHub Desktop.
WordPress: disable XML-RPC pingbacks to prevent DDOS requests
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
function disable_pingback( $methods ) { | |
unset( $methods['pingback.ping'] ); | |
return $methods; | |
} | |
add_filter( 'xmlrpc_methods', 'disable_pingback' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment