Skip to content

Sanction Traffic From Russian and Belarusian IP addresses using express.js / connect / nuxt.js

License

Notifications You must be signed in to change notification settings

Russia-Sanctions/Connect-Express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Russia Sanctions - Connect.js / Express.js

A small Connect/Express/Nuxt.js Middleware Plugin which blocks requests from IP addresses linked with Russia and Belarus. A message explaining the war and these sanctions is displayed.

Installation

Install the package via npm:

npm i @russia-sanctions/connect-express

Or via yarn:

yarn add @russia-sanctions/connect-express

Usage with express

const express = requre('express')
const sanctions = requre('@russia-sanctions/connect-express')

const app = express()

app.use(sanctions)

Usage with Nuxt.js

After installation, edit your nuxt.config.js file and add the following:

serverMiddleware: [
  // ... anyOther Middleware you may have

  '@russia-sanctions/connect-express',
]

About

Sanction Traffic From Russian and Belarusian IP addresses using express.js / connect / nuxt.js

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published