Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@bambulabs/hapi-blockip

0.1.3 • Public • Published

hapi-blockip

NPM version

hapi-blockip is a hapi plugin for blocking IP addresses.

What hapi-blockip does?

hapi-blockip responses to the requests coming from blocked IP addreses with 403.

Installation

npm i @bambulabs/hapi-blockip

Usage

 const HapiBlockIP = require("@bambulabs/hapi-blockip");
 
 await server.register({
   plugin: HapiBlockIP,
     options: {
       blocklist: ["127.0.0.1"]
     }
 });

Support

hapi-blockip supports IPV4 and IPV6.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Install

npm i @bambulabs/hapi-blockip

DownloadsWeekly Downloads

7

Version

0.1.3

License

MIT

Unpacked Size

9.12 kB

Total Files

6

Last publish

Collaborators

  • avatar
  • avatar