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.

The trailing . MUST be present in the black/whitelist rule

ip = 192.168.3.4

result = match