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 1 year ago
JSON representation
πΊπ¦ Middleware to block all requests from Russia to any Express app and display a pro-Ukraine message instead
- Host: GitHub
- URL: https://github.com/cba85/express-embargoed
- Owner: cba85
- License: mit
- Created: 2022-02-28T16:15:06.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-28T17:00:46.000Z (over 4 years ago)
- Last Synced: 2025-03-14T02:03:25.827Z (over 1 year ago)
- Topics: express-middleware, expressjs, nodejs
- Language: HTML
- Homepage:
- Size: 3.42 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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:

## 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.