Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically ban resource hogs by IP address #25

Open
4pr0n opened this issue Sep 6, 2013 · 0 comments
Open

Automatically ban resource hogs by IP address #25

4pr0n opened this issue Sep 6, 2013 · 0 comments

Comments

@4pr0n
Copy link
Owner

4pr0n commented Sep 6, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant