Skip to content

Django middleware library to block all requests from Russia to any Django app and display a pro-Ukraine message instead 🇺🇦

License

Notifications You must be signed in to change notification settings

ronaldlangeveld/django-embargoed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django-Embargoed

Django-Embargoed is Django middleware with a that blocks all requests from Russia and displays a pro-Ukraine message instead.

This is a port of Embargoed by my good friend Rameerez. He also maintains a list of ports on Embargoed-list.

Here's the message that replaces all pages of your app:

Embargoed message displayed to Russian visitors

Installation

pip install django-embargoed

In your settings.py file

INSTALLED_APPS  =  [
...
'embargoed'
...
]


MIDDLEWARE  =  [
...
'embargoed.middleware.EmbargoedMiddlewareTemplate',
...
]

That's it. Traffic from Russia is now blocked.

Collaborate

Please feel free to contact me @ronaldlangeveld or fork this to port it to other platforms, or make PRs to this repo to collaborate.

About

Django middleware library to block all requests from Russia to any Django app and display a pro-Ukraine message instead 🇺🇦

Resources

License

Stars

Watchers

Forks

Releases

No releases published