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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7dfad40e569e7ac81f793bcfb5d37a7476efc6544a63866ad8b7fd2a5f37b57b
|
|
| MD5 |
19f2f726a53c1c2f0ac5166b515482b0
|
|
| BLAKE2b-256 |
c2f75a9c947337e78eeb18c37cff924ed1d7ce7942293210c0682f130bfd617a
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30e6c4ef329b7e8f6c75562bd7cf8b0efbe8f7711b07c10a9b5c59194b5418ac
|
|
| MD5 |
fcd6042c913a8c55c2c10b3dc43acff5
|
|
| BLAKE2b-256 |
6f10117d10729bd6b94794a46cbdfe57ec8f7037a478e0f31ac65db41651c82b
|