Http451 is a simple Django app that implements http451 on django. It implements the following IEFT RFC:
https://tools.ietf.org/html/rfc7725
https://tools.ietf.org/id/draft-sahib-451-new-protocol-elements-03.txt
- Install http451 via pip :
pip install django-http-451
- Add 'http451' to your INSTALLED_APPS settings like:
- INSTALLED_APPS = [
...
'http451',
]
- Add the following in your middleware
- MIDDLEWARE = [
...
'http451.middleware.http451Middleware',
]
- Run python manage.py migrate to create the http451 models.
- Start the development server and visit the admin page
- Block a resource add it through the admin page http451 section