embargoed

1.0.0 • Public • Published

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

Install

Install embargoed from npm

$ npm install embargoed

Usage

const embargoed = require("embargoed");

app.use(embargoed);

Package Sidebar

Install

npm i embargoed

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

9.5 MB

Total Files

7

Last publish

Collaborators

  • cba85