The last couple of days my WordPress site has been getting hit by a DoS attack from a single IP address trying to access the ‘xmlrpc.php‘ page. Even though the page is not there it was still causing a lot of slow down processing the request.
Once I had established the source address, a quick google search gave me a solution to block the address through linux’s iptables.
sudo apt-get install iptables
iptables -A INPUT -s IP_ADDRESS -j DROP
Done and done. Now let’s just hope that my site hasn’t been added to a list somewhere and I get pummelled from somewhere else.