/embargoed

πŸ‡ΊπŸ‡¦ Ruby gem to block all requests from Russia to any Rails app and display a pro-Ukraine message instead

Primary LanguageRubyMIT LicenseMIT

Embargoed

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:

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 originating 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.