You can disable XML-RPC in WordPress by editing your site's .htaccess file, either directly or by using a plugin like WPCode.