To prevent xmlrpc attack in WordPress website just add below code to the .htaccess file of the user domain -

Redirect 301 /xmlrpc.php http://127.0.0.1

Hope this article helps!
Was this answer helpful? 0 Users Found This Useful (0 Votes)