Blacklist based on IP addr's first 3/2/1 octets

Add SQL black/whitelisting based on matching the first 3, 2, or one octet of IP address

e.g. 

blacklist entry = 192.168.

or 192.168

ip = 192.168.3.4

result = match