B
B
bro-dev02018-05-16 20:39:05
JavaScript
bro-dev0, 2018-05-16 20:39:05

How to implement checking for the presence of ip in the ban list, with masks on nodejs and mongodb?

How to implement checking for the presence of ip in the ban list, with masks on nodejs and mongodb?
I see the current 2 options, the most vlob is just to request all the records every time and check, a very long and costly method IMHO.
Another option is not to store the masks, but to open them immediately and store all the ips, then the check will be faster, but it will be difficult, for example, to remove this ban later.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question