An open API service indexing awesome lists of open source software.

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

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
```