/// <summary> /// Checks if the IP address belongs to the approved IP address list /// </summary> public static bool IsApprovedIpAddress(string ipAddress) { if (StringUtils.IsBlank(ipAddress)) { return(false); } IpAddressFinder ipRestrictionFinder = new IpAddressFinder { IpAddressValue = ipAddress }; return(IpAddress.GetCount(ipRestrictionFinder) != 0); }