https://ixnfo.com/en/preventing-attacks-on-wordpress-xmlrpc-php-and-wp-login-php.html
Preventing attacks on WordPress xmlrpc.php and wp-login.php