0

Is it possible to throttle or ban IP address based on how much the host is using bandwidth of my webserver? In ideal situation I would like to create rules like:

if IP uses bandwidth over 1000 MB in 10 minutes, ban/throttle the IP

If it's possible, how can I achieve something like this?

I'm running apache webserver with Debian 8.

1 Answers1

0

The usual modules do not do everything that you ask. mod_bw allows by IP but does not allow a time based quota. mod_ratelimit does not limit by IP it is per request, and requires a httpd upgrade.

Or, if these are legit users, solve the problem with more bandwidth. Get faster network links on your web server, or perhaps put a CDN in front of it.

John Mahowald
  • 36,071