I have deployed WP project on a CentOS based Linux server.
I am experiencing unusual traffic (crawling) from random IP addresses hence causing very high server load (as high as average load 200).
Is there any possibility to automatically detect such requests at server and temporarily block that IP ?
I mean if server founds 100 requests from same IP within a second it should block that IP.
Please guide.
iptables
rate limiting modules. There's alsofail2ban
. It's worthwhile to use both. I'm downvoting this question because it's almost certainly been answered a million times already on this site alone.