Code Monkey home page Code Monkey logo

goddessmokosh / stop-war-in-ukraine Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 1.0 1.48 MB

A WordPress plugin that displays proxied war news from the free world to Russian IP address visitors with option to block further access.

License: GNU General Public License v2.0

PHP 92.54% Shell 0.04% JavaScript 7.42%
ukraine wordpress wordpress-plugin censorship censorship-circumvention ukraine-invasion russian-language donation democracy freedom-of-information freespeech blogging

stop-war-in-ukraine's Introduction

Stop War in Ukraine

What?

A WordPress plugin that displays an overlay with a Red Cross donation link and a live feed of war news only to Russian visitors. The overlay can be dismissed or set to block further access to the website. Since it's an overlay it does not prevent indexing on Yandex or other search engines. This plugin has been submitted to the WordPress.org repo (pending review). All source code is available for review; and uses the CMB2 open source project for it's admin interface. The overlay message is in Russian and says: "World news - This site is blocked in Russia ✚give to Ukraine, The Red Cross helps victims of the conflict in the east of the country, and also supports the work of the Red Cross Society of Ukraine".

Why?

Russian citizens are being blocked from world news in the free world. Many do not know what is happening in Ukraine; this plugin can safely circumvent that by proxying BBC News in Russian.

How?

When this plugin is activated, a user visiting from a Russian IP address will see an overlay on your website with an embedded iframe showing BBC news in the Russian language (proxied; even if BBC is banned in Russia, the news will appear through your website domain). A reduced bandwidth page is proxied through your server and domain name through an iframe; this allows a Russian user that cannot access news to see basic headlines and main headline images. They will also see a banner to the International Red Cross with a donation link in the Russian language and currency. Here is a screenshot of what they may see:

screenshot

Installation

Installation is simple. Just download the main repo here using the Download button (or https://github.com/goddessmokosh/stop-war-in-ukraine/archive/refs/heads/main.zip). Visit your WordPress dashboard, Plugins -> Add New -> Upload Plugin. You can configure options in the WordPress Admin Menu for Settings -> Stop War In Ukraine

Options

You can allow Russian visitors to dismiss the overlay or you can set the overlay to persist; inhibiting easy access to your website. To preserve SEO, your site still exists under the overlay. Other options allow you to omit the Red Cross banner and test the functionality by adding your IP address to the block list. This plugin does not block access to your website or its admin pages or login. The overlay is only displayed to Russian/Belarusian visitors. Once activated, you can configure options in the WordPress Admin Menu for Settings -> Stop War In Ukraine

The list of IPs that are "blocked" are in the file titled russian_ip_addresses.php. The list is compiled to include both Russian and Belarus IP addresses in CIDR format from https://www.countryipblocks.net/acl.php

stop-war-in-ukraine's People

Contributors

goddessmokosh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

cogsergosonos

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.