Skip to content

Instantly share code, notes, and snippets.

@gabrieleromanato
Created March 13, 2014 12:40
Show Gist options
  • Save gabrieleromanato/9527684 to your computer and use it in GitHub Desktop.
Save gabrieleromanato/9527684 to your computer and use it in GitHub Desktop.
WordPress: disable XML-RPC pingbacks to prevent DDOS requests
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