1.0.0 β€’ Published 2 years ago

embargoed v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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);