|
No, htaccess won't be enough for that.
I dealt with this problem last year. In the end, with the help of Chat GPT, I programmed a PHP firewall that works reliably. The firewall blocks all IP addresses that visit more than 80 pages in 5 minutes. Of course, I use a whitelist for known bots such as Googlebot, etc.
Nothing is 100%, but I've been using this solution for almost a year now, and it works well.
|