1.0.0 β’ Published 2 years ago
embargoed v1.0.0
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
$ npm install embargoed
Usage
const embargoed = require("embargoed");
app.use(embargoed);
1.0.0
2 years ago