Project

embargoed

0.05
Low commit activity in last 3 years
No release in over a year
Embargoed blocks all visitors from Russia from your Rails application, displaying a pro-Ukraine message instead.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.6
~> 3.0
~> 1.0
>= 0.10, ~> 0.10
>= 0.0.4, ~> 0.0.4

Runtime

>= 0.7, < 2
~> 1.1.1
>= 1.3, < 3
>= 1.4, < 3
 Project Readme

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.