isIPInRange
4

Overview ColdFusion Open BlueDragon Lucee

Checks if an ip is in the range of a list of given ips. IPv4 and IPv6 are supported.

Attributes

Name Required Type Default Description
4
ip No ip to search
4
ips No A comma separeted list of strings or a string array of ip defintions. The following patterns are allowed: - a single ip, like "127.0.0.1" - an ip with wildcards like "127.0.0.*", in this case all ips between "127.0.0.0" and "127.0.0.255" are valid - an ip range like "127.0.0.1-127.0.0.10", in this case all ips between "127.0.0.1" and "127.0.0.10" are valid