4pr0n / rip

album ripper
GNU General Public License v2.0
45 stars 18 forks source link

Automatically ban resource hogs by IP address #25

Open 4pr0n opened 11 years ago

4pr0n commented 11 years ago

A small percentage of the users are consuming a large percentage of the bandwidth and resources.

The system requires grepping access logs to find offenders & manually banning their IPs.

This could be a cron script (or embedded in python_cleanup.py). Look for users ripping albums over a threshold and ban them.

For ex, hand out bans for users that rip more than 50 albums in one day.

Bans could be reset at the end of the day, or after 2 days.

Banning should redirect to a page informing the user that they've been banned and [may] be unblocked in the near future.