added IP check in IP range (cidr)
added source code from apache's developer (untouched license and copyright)