Embargoed

Embargoed is Rack middleware with a Ruby on Rails engine that blocks all requests from Russia and displays a pro-Ukraine message instead.

Embargoed is a fork from Turnout.

Embargoed message displayed to Russian visitors

Installation

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 from a Russian IP.

Collaborate

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