xmlrpc.php related attack
-
I am on a shared host but behind cloudflare (to avoid such situations).
I was getting what must have been 10s of thousands of requests to xmlrpc.php per minute and this made me reach my cpu limit and cpanel started to reject connections.
I set cloudflare to ‘i am under attack’ and this blocked most access to my website while I figure out what to do.
A google search resulted inRewriteRule ^xmlrpc\.php$ “http\:\/\/0\.0\.0\.0\/” [R=301,L]
# Block attackers by agents
<IfModule mod_rewrite.c>
RewriteCond %{HTTP_USER_AGENT} ^.*WinHttp\.WinHttpRequest\.5.*$
RewriteRule .* https://%{REMOTE_ADDR}/ [R,L]
</IfModule>I added that and while this did not stop the attack, it removed the high CPU usage.
How long do I keep the rewrite rule? what is the best way to deal with this situation?
- The topic ‘xmlrpc.php related attack’ is closed to new replies.