Skip to content
This repository has been archived by the owner on Apr 18, 2021. It is now read-only.

Like a firewall but smaller. Protect your views from intruders!

License

Notifications You must be signed in to change notification settings

rehandalal/django-firefence

Repository files navigation

django-firefence

PyPI Travis Codecov

Django 1.9 Django 1.9 Django 1.10 Django 1.11

Quick Start

Install from PyPI:

pip install django-firefence

Add the middleware and configure some rules:

MIDDLEWARE = [
    ...

    'firefence.middleware.FirefenceMiddleware',
    ...
]

FIREFENCE = {
    'RULES': [
        {
            'action': 'ALLOW',
            'host': '192.168.1.1',
            'port': '80, 443',
        }
    ]
}

This will check all incoming requests to your app against these rules. Use of the middleware is optional and you can check only certain views by using provided decorators. Please consult the documentation for more information.

About

django-firefence is a project developed to provide firewall style request filtering to a Django project at the application level or at the view level.

The library is compatible with currently supported versions of Django.

Found a bug? Looking for a new feature?

Feel free to file an issue on the Github project issue page.

Documentation

Full documentation is available at: http://django-firefence.readthedocs.io/

About

Like a firewall but smaller. Protect your views from intruders!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages