siga
10/10/2015 - 10:50 AM

Disable pingbacks if you got problem with DDos attacks and server load. Method for functions and method for htaccess. http://www.genesisclub

// Goes to functions
add_filter( 'wp_headers', function( $headers ) {
   unset( $headers['X-Pingback'] );
   return $headers;
}, 20);

add_filter( 'xmlrpc_methods', function( $methods ) {
   unset( $methods['pingback.ping'] );
   unset( $methods['pingback.extensions.getPingbacks'] );
   return $methods;
}, 20);
<Files xmlrpc.php>
Order Deny,Allow
Deny from all
Allow from 192.0.64.0/18
Satisfy All
ErrorDocument 403 http://127.0.0.1/
</Files>