gdelacc/embargoed-composer

Embargoed Composer is a simple PHP Composer library to blocks all requests from Russia and displays a pro-Ukraine message instead. Based on https://github.com/rameerez/embargoed

dev-master 2022-02-26 17:57 UTC

This package is not auto-updated.

Last update: 2024-05-06 02:27:21 UTC


README

Embargoed is middleware for PHP Composer with a engine that blocks all requests from Russia and displays a pro-Ukraine message instead.

People are already working on making for all other platforms. If you port it to other platform, please let me know and I'll add your port to the list of ports.

Here's the message that replaces all pages of your app:

Embargoed message displayed to Russian visitors

Installation

This project using composer.

$ composer require gdelacc/embargoed-composer

Usage

Block all visits to your website from Rusian IPS

<?php

use embargoedComposer\EmbargoedComposer;

new EmbargoedComposer();

Collaborate

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