Skip to main content

An ip blocker by regexp and ip range for Django apps.

Project description

django-restrictip
=============

An ip blocker by regexp and ip range for Django apps.


Usage
=====


1. Place 'restrictip' in the INSTALLED_APPS tuple of your settings.py file like so:

INSTALLED_APPS = (
...
'restrictip',
...
)


2. Place 'restrictip.middleware.RescrictIpMiddleware' in the MIDDLEWARE_CLASSES
tuple of your settings.py file like so:

MIDDLEWARE_CLASSES = (
...
'restrictip.middleware.RescrictIpMiddleware',
...
)

3. Create tables:
$ python manage.py syncdb

4. Edit rules in the Django admin

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-restrictip, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size django-restrictip-1.0.1.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page