express-ipfilter icon indicating copy to clipboard operation
express-ipfilter copied to clipboard

Is there a way to update the list of IPs in realtime?

Open alexbudin opened this issue 2 years ago • 1 comments

I want to add new IPs on the list. Will they be filtered once they are added in the list? or a server restart is necessary?

Thank you,

Alex

alexbudin avatar Aug 31 '22 18:08 alexbudin

You can pass a function that can fetch the latest desired IP list.

`const ips = function() { return ['127.0.0.1'] }

// Create the server app.use(ipfilter(ips, { mode: 'allow' }))

module.exports = app`

smit-luvani avatar Sep 23 '23 21:09 smit-luvani