I've got a site which from time to time gets mass hits from an IP, I'm talking hundreds of hits in a few seconds. The problem is this site runs on a crappy custom script which according to my host is the cause of the problem as it searches through the entire mysql database whenever a query is made (something like that), which in turn overloads the CPU causing downtime.
Anyway until I get a coder to work on the script is there any way I can stop this from happening? Whenever this happens it basically cripples my server for minutes at a time. And it happens again and again from different IPs, so blocking them in htaccess doesn't really solve the problem.
Is there any way the server can block an IP automatically once it makes too many requests in a given time period?
Anyway until I get a coder to work on the script is there any way I can stop this from happening? Whenever this happens it basically cripples my server for minutes at a time. And it happens again and again from different IPs, so blocking them in htaccess doesn't really solve the problem.
Is there any way the server can block an IP automatically once it makes too many requests in a given time period?