Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cba85/express-embargoed

πŸ‡ΊπŸ‡¦ Middleware to block all requests from Russia to any Express app and display a pro-Ukraine message instead
https://github.com/cba85/express-embargoed

express-middleware expressjs nodejs

Last synced: about 8 hours ago
JSON representation

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

Awesome Lists containing this project

README

        

# Express embargoed

Middleware to block all requests from Russia to any Express.js app and display a pro-Ukraine message instead πŸ‡ΊπŸ‡¦

## What does this middleware do?

This middleware checks the IP of visitors coming to your site for their origin. If it detects a Russian IP, instead of continuing as normal it will block the visit and display a pro-Ukrainian message.

The message looks as follows:

![Embargoed message](./docs/embargoed-message.jpeg)

## Install

Install embargoed from npm

```bash
$ npm install embargoed
```

## Usage

```js
const embargoed = require("embargoed");

app.use(embargoed);
```

## Other technologies

This plugin is supported in a variety of different technology stacks. You can find an exhaustive list in [this repository](https://github.com/rameerez/embargoed-list).

## Collaborate

Please feel free to contact to [@rameerez](https://twitter.com/rameerez) or fork this to port it to other platforms, or make PRs to this repo to collaborate.