embargoed
is a Rails gem that blocks all requests from Russia and displays a pro-Ukraine message instead.
Using PHP instead? π WordPress? π Python Django? π Check out the list of ports.
Here's the message that replaces all pages of your app:
Add this to your Gemfile
:
gem 'embargoed'
then run
bundle install
Note that you'll need to restart your Rails server before it works
That's it! Just by having embargoed
on your Gemfile your Rails app will display this message to all requests originating from a Russian IP.
Please feel free to contact me @rameerez or fork this to port it to other platforms, or make PRs to this repo to collaborate.