joined:Apr 18, 2007
Is it possible to configure htaccess to allow a visitor from a 'unique IP' to visit a set number of pages before he is blocked?
I have a site with around 100 pages, but in the past few days I have been bombarded by rogue IPs each having more than 1000 page views. So they probably access the same page over and over again increasing server load and bandwidth.
I have blocked a range of rogue user-agents in htaccess to no avail. I have even blocked IPs originating from Spam producing countries like China. No use, cause all these IPs seem to originate in the US and are all valid with verified DNS.
So I was thinking, if there is a way of letting a visitor view a set number of pages, say around 50 pages/visit/24hours. And once he reaches that limit, he is automatically blocked. Any possibility of doing that using htaccess?