Skip to main content

Django Brute-force guard

Project description

https://badge.fury.io/py/django-brute-guard.svg https://travis-ci.org/dcopm999/django-brute-guard.svg?branch=master https://codecov.io/gh/dcopm999/django-brute-guard/branch/master/graph/badge.svg

Django Brute-force guard

Documentation

The full documentation is at https://django-brute-guard.readthedocs.io.

Quickstart

Install Django brute-forece guard:

pip install django-brute-guard

Add it to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    "bruteguard",
    ...
)

MIDDLEWARE = [
    ...
    "bruteguard.middleware.brute_guard",
]

BRUTE_GUARD = {
    "MANAGER": "SingletonManager", # or "DjangoCacheManager"
    "VALIDATORS": ["BruteForceValidator"],
    "OPTIONS": {
        "error_attempts_counter": 5,
        "base_blocking_rate_minutes": 1,
        "multiple_blocking_rate": True,
    },
}

Add Django brute-forece guard’s URL patterns:

urlpatterns = [
    ...
    path("bruteguard/", include(bruteguard_urls)),
    ...
]

Features

  • TODO

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Development commands

pip install -r requirements_dev.txt
invoke -l

Credits

Tools used in rendering this package:

History

0.1.0 (2021-09-23)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-brute-guard-0.1.0.tar.gz (12.3 kB view hashes)

Uploaded Source

Built Distribution

django_brute_guard-0.1.0-py2.py3-none-any.whl (14.2 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page