Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/qiaocco/django-forbidden-ip

This is a django application to forbid access by IP address.
https://github.com/qiaocco/django-forbidden-ip

django

Last synced: about 2 months ago
JSON representation

This is a django application to forbid access by IP address.

Awesome Lists containing this project

README

        

django-forbidden-ip
---

This is a django application to forbid access by IP address.

Install
===

pip install django-forbidden-ip

Config
===

1. Add `ip_interceptor` to `INSTALLED_APPS`.
2. Add `ip_interceptor.middleware.IPInterceptorMiddleware` to `MIDDLEWARE`.
3. Run `./manage.py makemigrations ip_interceptor` and `./manage.py migrate ip_interceptor`.
4. Add IP you want to block to `ForbiddenIP`.