How to add this to protect my sites
-
I need to add this to protect against the pingback hack. Uh, must I create a plugin or is this just code added to a file? If the latter, which file? If the former, do I just name it whatever I want? Which file format?
Update: A better way to block it is by creating a plugin that adds the following filter:
add_filter( ‘xmlrpc_methods’, function( $methods ) {
unset( $methods[‘pingback.ping’] );
return $methods;
} );
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to add this to protect my sites’ is closed to new replies.