add throttle feature... #2

Open
jedie opened this Issue Aug 2, 2012 · 0 comments

Projects

None yet

1 participant

@jedie
Owner
jedie commented Aug 2, 2012

In PyLucid i have a simple ban function. The Principe is simple: I add logging entries and if in a defined time too many entries, the IP address would be added to the ban model. This model would be used in the middleware to ban…

Models:

middleware:

A better idea is to use the cache, like the throttle decorator in django-piston: https://bitbucket.org/jespern/django-piston/src/7c90898072ce/piston/utils.py#cl-108

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