Skip to main content

Limit visitors to your django app by count

Project description

Django Mosquito 🦟

Limit visitors to your django app by count

Whats Django Mosquito

Mosquito middleware helps you set limit of visiting you django for each user

Installation

pip install djangomosquito

Import

import it inside middleware in django settings

middlewares = [
  ...,
  'djangomosquito.middleware.DjangoMosquito',
  ...,
]

Usage

This middleware do it job you just need to set limit number and by setting the limit number after reaching this number user get banned from your website for 1 day

How

settings.py

# after 100 requests user get banned
LIMIT_MOSQUITO = 100

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

djangomosquito-0.0.4.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

djangomosquito-0.0.4-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file djangomosquito-0.0.4.tar.gz.

File metadata

  • Download URL: djangomosquito-0.0.4.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for djangomosquito-0.0.4.tar.gz
Algorithm Hash digest
SHA256 7dfad40e569e7ac81f793bcfb5d37a7476efc6544a63866ad8b7fd2a5f37b57b
MD5 19f2f726a53c1c2f0ac5166b515482b0
BLAKE2b-256 c2f75a9c947337e78eeb18c37cff924ed1d7ce7942293210c0682f130bfd617a

See more details on using hashes here.

File details

Details for the file djangomosquito-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: djangomosquito-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for djangomosquito-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 30e6c4ef329b7e8f6c75562bd7cf8b0efbe8f7711b07c10a9b5c59194b5418ac
MD5 fcd6042c913a8c55c2c10b3dc43acff5
BLAKE2b-256 6f10117d10729bd6b94794a46cbdfe57ec8f7037a478e0f31ac65db41651c82b

See more details on using hashes here.

Supported by

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