46cl / wp-boilerplate

[unstable] A Wordpress boilerplate created by 46cl
MIT License
3 stars 1 forks source link

Add a utility filter to disable pingbacks and trackbacks #35

Closed jvelo closed 9 years ago

jvelo commented 9 years ago

XML RPC pingback and trackbacks of public WP sites are used as a gateway for DDoS attacks (see http://wptavern.com/how-to-prevent-wordpress-from-participating-in-pingback-denial-of-service-attacks). This impacts the WP instance used by attackers, which itself becomes subject to a form of denial of service. We should offer an option to disable them easily, since many sites built with WordPress don't even use that functionality.

The article suggest the following snippet :

add_filter( 'xmlrpc_methods', 'remove_xmlrpc_pingback_ping' );
function remove_xmlrpc_pingback_ping( $methods ) {
   unset( $methods['pingback.ping'] );
   return $methods;
} ;
nesk commented 9 years ago

Should we disable this feature by default? Is it a priority?

jvelo commented 9 years ago

Yes I think it should be disabled by default and that those who want the functionality enable it back :