Skip to main content

Django Inbound Rules is an app to allow or restrict group of users on specified url(s) based on CIDR blocks(now IPv4 only) excluding user with superuser permissions.

Project description

Django Inbound Rules

Description

Django Inbound Rules is an app to allow or restrict group of users on specified url(s) based on CIDR blocks(now IPv4 only) excluding user with superuser permissions.

Installation

pip install django-inbound-rules

Quick start

  1. Add "inbound" to your INSTALLED_APPS in settings.py like this::

    INSTALLED_APPS = [
        ...
        'inbound',
        ...
    ]
    
  2. Add "inbound.middleware.restrict_user_middleware" to your MIDDLEWARE in settings.py like this::

    MIDDLEWARE = [
        ...
        'inbound.middleware.restrict_user_middleware',
        ...
    ]
    
  3. Run python manage.py migrate to implement django-inbound-rules.

  4. Start the development server and visit http://127.0.0.1:8000/admin/ to create your Inbound Rules.

  5. For working logic, see documentation.

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-1.1.0.tar.gz (54.2 kB view details)

Uploaded Source

Built Distribution

django_inbound_rules-1.1.0-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file django-inbound-rules-1.1.0.tar.gz.

File metadata

  • Download URL: django-inbound-rules-1.1.0.tar.gz
  • Upload date:
  • Size: 54.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.5

File hashes

Hashes for django-inbound-rules-1.1.0.tar.gz
Algorithm Hash digest
SHA256 3fb016758adc14bf5b94e66be7463670f4c0a5a15d26b6336f4494d3699eef62
MD5 9f83803f85150c46f8f1e01def216ef9
BLAKE2b-256 8ab58f27b740b5bb4500c94c3ef286c0d33ad3e03fff65bfc84085f42801de57

See more details on using hashes here.

File details

Details for the file django_inbound_rules-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: django_inbound_rules-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.7 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/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.5

File hashes

Hashes for django_inbound_rules-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d42d60792a7eac20b9506d17305db9cc07aa7d8ec724297a58139d71f042e514
MD5 a515d8ed7b44bf64ca48d151c7fb5fe3
BLAKE2b-256 bd0873a9d00544a7b9f754e055ccb57c0175253b13a99328e5a7f9a5d573d495

See more details on using hashes here.

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