Skip to main content

Django Inbound Rules is an app to allow or restrict IP's on specified urls based on CIDR blocks.

Project description

Django Inbound Rules

Description

Django Inbound Rules is an app to allow or restrict IP's on specified urls based on CIDR blocks. Detailed documentation is in the "docs" directory.

Installation

pip install django-inbound-rules

Quick start

  1. Add "django-inbound" to your INSTALLED_APPS setting like this::

    INSTALLED_APPS = [
        ...
        'django_inbound',
    ]
    
  2. Add "django_inbound.middleware.restrict_user_middleware" to your MIDDLEWARE setting like this::

    MIDDLEWARE = [
        ...
        'django_inbound.middleware.restrict_user_middleware',
        ...
    ]
    
  3. Run python manage.py migrate to create the inbound rules models.

Licence

Copyright (c) 2020 Nilesh Kumar Dubey

This repository is licensed under the MIT license. See LICENSE for details

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

django-inbound-rules-0.1.tar.gz (11.2 kB view hashes)

Uploaded Source

Built Distribution

django_inbound_rules-0.1-py3-none-any.whl (2.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page