Handle a IP blacklist structure in which you receive IP Addresses in the form of:
10.0.0.1
11.0.0.1-11.0.0.255
12.0.0.0/16
And then you can check if a given IP matches any of those rules.