Many site owners disable this because the xmlrpc.php file is a frequent target for and DDoS pingback attacks .
Adding this snippet to your theme’s functions.php file will turn off the XML-RPC interface. add_filter( 'xmlrpc_enabled', '__return_false' ); Use code with caution.
To stop the ?rsd link from appearing in your site's header, use this piece of code: remove_action('wp_head', 'rsd_link'); Use code with caution. 2. Piece to Block Access (via .htaccess)





