Skip to main content

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

Metadata

Release files for djangomosquito 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for djangomosquito 0.0.4
File Size Uploaded Provenance Actions
djangomosquito-0.0.4.tar.gz 2.9 kB Without provenance Details for djangomosquito-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for djangomosquito 0.0.4
File Interpreter ABI Platform Actions
djangomosquito-0.0.4-py3-none-any.whl Python 3 none any Details for djangomosquito-0.0.4-py3-none-any.whl

Total release size: 6.9 kB

Release files / djangomosquito-0.0.4.tar.gz

Download URL djangomosquito-0.0.4.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7dfad40e569e7ac81f793bcfb5d37a7476efc6544a63866ad8b7fd2a5f37b57b
BLAKE2b-256 checksum
How to use checksums
c2f75a9c947337e78eeb18c37cff924ed1d7ce7942293210c0682f130bfd617a
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / djangomosquito-0.0.4-py3-none-any.whl

Download URL djangomosquito-0.0.4-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
30e6c4ef329b7e8f6c75562bd7cf8b0efbe8f7711b07c10a9b5c59194b5418ac
BLAKE2b-256 checksum
How to use checksums
6f10117d10729bd6b94794a46cbdfe57ec8f7037a478e0f31ac65db41651c82b
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for djangomosquito 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page