Open
Description
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:
- https://github.com/jedie/PyLucid/blob/master/pylucid_project/apps/pylucid/models/ip_ban_list.py
- https://github.com/jedie/PyLucid/blob/master/pylucid_project/apps/pylucid/models/log.py
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
Metadata
Metadata
Assignees
Labels
No labels