Skip to main content

Login rate-limiting at the auth backend level

Project description

Django-ratelimit-backend

Build Status

Rate-limit your login attempts at the authentication backend level. Login attempts are stored in the cache for 5 minutes and IPs with more than 30 failed login attempts in the last 5 minutes are blocked.

The numbers (30 attempts, 5 minutes) as well as the blocking strategy can be customized.

Credits

Hacking

git clone https://brutasse@github.com/brutasse/django-ratelimit-backend.git

Hack and run the tests:

python setup.py test

To run the tests for all supported Python and Django versions:

pip install tox
tox

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-ratelimit-backend-2.0.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

django_ratelimit_backend-2.0-py2.py3-none-any.whl (6.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-ratelimit-backend-2.0.tar.gz.

File metadata

  • Download URL: django-ratelimit-backend-2.0.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.22.0 CPython/3.5.5

File hashes

Hashes for django-ratelimit-backend-2.0.tar.gz
Algorithm Hash digest
SHA256 de1056767b0cf3a5a78b2e7685153d55891720e2b3fdbd1a35cf689a97b1bffe
MD5 43443c8f75b8e936da25473ab2fb4a01
BLAKE2b-256 eb948ee54ad1ae413f5547ce9aeeedb89a910154908efce1600c276418cdf724

See more details on using hashes here.

Provenance

File details

Details for the file django_ratelimit_backend-2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: django_ratelimit_backend-2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.22.0 CPython/3.5.5

File hashes

Hashes for django_ratelimit_backend-2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9fa1f8b3f45101f49eabb2cdfd032e1af1e12f37b8b888ca3265f363389dd8be
MD5 1258bc89b692233d391900a1f1a5e295
BLAKE2b-256 c1616230218ab8137235581461b48bc16cedf95946cf1d18ae4df7ee882a01e4

See more details on using hashes here.

Provenance

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