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.

Source Distribution

django-restrictip-1.0.1.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file django-restrictip-1.0.1.tar.gz.

File metadata

File hashes

Hashes for django-restrictip-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e671534b5ba6adb1e22e3cddab2b6cbc5a3a80c87fcb370f049926ac98dc7e9e
MD5 523be6b462821670f9f8b333a6a41d1d
BLAKE2b-256 4dbfd76751e83227a24f7998eb412dd6258a05629a9bd4223b809696b98fdca7

See more details on using hashes here.

Supported by

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