hc-mid-ip-filter
v1.0.5
Published
honeycomb hc-bee middleware to filter client ip
Downloads
4
Readme
hc-mid-ip-filter
honeycomb hc-bee middleware to filter client ip.
install
npm i -S hc-mid-ip-filter
usage
In file config/config_default.js
{
...
middleware:{
ipFilter:{
config: {
allow: [
'22.22.22.22',
'22.22.0.0/12',
'33.33',
],
deny: [
'23.23'
]
}
}
}
}
For the allow
, deny
array format, please see netmask.
To allow all ips, set allow
to ['0.0.0.0/0']
.