0.1.3 • Published 6 years ago

@bambulabs/hapi-blockip v0.1.3

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

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

0.1.2

6 years ago

0.1.3

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.1

6 years ago