Skip to content

Instantly share code, notes, and snippets.

@spyesx
Created September 2, 2016 09:36
Show Gist options
  • Save spyesx/32f2caaa772551567a87f690404ed004 to your computer and use it in GitHub Desktop.
Save spyesx/32f2caaa772551567a87f690404ed004 to your computer and use it in GitHub Desktop.
Disable XML RPC Ping back to protect Wordpress from DDOS
<?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