I wanted to know how can I prevent a single ip address from using too much bandwidth and rapidly access my webpages. That is, checking the user’s ip address (I think $_SERVER['REMOTE_ADDR']?), check for latest visit from this user, compute time difference and block rendering the page if the interval is short. Am I right? If so, how can I do it without consuming too much resource and/or time on the server? If there is a database approach, isn’t it going cause too many locks?
I wanted to know how can I prevent a single ip address from using
Share
Apache mod_bandwidth allows to control certain IPs
i.e.
BandWidth <domain|ip|all> <rate>https://httpd.apache.org/docs/trunk/mod/mod_ratelimit.html