Metadata-Version: 2.1
Name: django-inbound-rules
Version: 1.1.0
Summary: 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.
Home-page: https://github.com/nilesh-kr-dubey/django-inbound-rules
Author: Nilesh Kumar Dubey
Author-email: nileshdubeyindia@gmail.com
License: MIT
Project-URL: Documentation, https://github.com/nilesh-kr-dubey/django-inbound-rules/tree/master/docs
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 2.0
Classifier: Framework :: Django :: 3.0
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Description-Content-Type: text/markdown
Requires-Dist: Django (>=2.0)

# 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


