This class can check if IP is in a blacklist or a whitelist.
It takes a given IP address and checks if it is not supposed to be block by checking if it is either in a whitelist or it is not in a blacklist.
Both lists are read from distinct text files with the same format to describe the IP addresses to match.
They can specify individual IP addresses or ranges using wildcard patterns or the addresses that start and end of the ranges.
The class can also provide a text message or an integer status value that explain why the given IP address passed or not the checks. |