An ip blocker by regexp and ip range for Django apps.
1. Place 'restrictip' in the INSTALLED_APPS tuple of your settings.py file like so:
INSTALLED_APPS = (
2. Place 'restrictip.middleware.RescrictIpMiddleware' in the MIDDLEWARE_CLASSES
tuple of your settings.py file like so:
MIDDLEWARE_CLASSES = (
3. Create tables:
$ python manage.py syncdb
4. Edit rules in the Django admin
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.