Git Product home page Git Product logo

embargoed's Introduction

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.

embargoed's People

Contributors

adamcrown avatar rameerez avatar bogdanrada avatar olleolleolle avatar pocke avatar alainmeier avatar cdimartino avatar omederos avatar amielvick avatar crondaemon avatar james05 avatar bfcoder avatar rodovich avatar michaelstephens avatar phillbaker avatar cromwellryan avatar nog avatar hungryzi avatar charles-busicat avatar gitusp avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.