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 hashes)

Uploaded Source

Built Distribution

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

Uploaded 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