I have a customer that has their website under a brute force attack. I detect many fradulent ip access to the site using:
echo $_SERVER['HTTP_REFERER'] . " - " . getIp() . date("Y-m-d H:i:s");
I can see that ips is accessing the website many times like 10 times per seconds.
I need to block all ips with that behavior, what do you recommend to do?
(is a simple Wordpress blog)
This rule probably works: More than 10 (consider yourself) request per second is a signal of fraudulent IP, this maybe controlled.
MySQL:
Fraudulent Ips:
PHP: