How to block access to xmlrpc in Wordpress using htaccess?

you need to insert into htaccess file these lines

 

<Files xmlrpc.php>
order deny,allow
deny from all
</Files>