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)
Built Distribution
Close
Hashes for djangomosquito-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30e6c4ef329b7e8f6c75562bd7cf8b0efbe8f7711b07c10a9b5c59194b5418ac |
|
MD5 | fcd6042c913a8c55c2c10b3dc43acff5 |
|
BLAKE2b-256 | 6f10117d10729bd6b94794a46cbdfe57ec8f7037a478e0f31ac65db41651c82b |