8000 add throttle feature... · Issue #2 · jedie/django-tools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
add throttle feature... #2
Open
@jedie

Description

@jedie

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0