Single IP and Range IP banning implementation

Range banning is based on subnet masks. i.e. 192.1.0.0/16 will ban all
IPs in range 192.1.0.0 to 192.1.255.255.