https://github.com/cinaaaa/django-mosquito
Limit the mosquitos from your Django app
https://github.com/cinaaaa/django-mosquito
django filter limiter mosquito
Last synced: about 1 month ago
JSON representation
Limit the mosquitos from your Django app
- Host: GitHub
- URL: https://github.com/cinaaaa/django-mosquito
- Owner: cinaaaa
- License: mit
- Created: 2020-09-23T08:52:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-23T12:28:37.000Z (over 5 years ago)
- Last Synced: 2025-12-15T15:00:31.934Z (6 months ago)
- Topics: django, filter, limiter, mosquito
- Language: Python
- Homepage: https://pypi.org/project/djangomosquito/
- Size: 7.81 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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
```