Tags · Functions · Objects
Lucee Function Reference
Choose a function:

Function ISIPINRANGE

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

Example

isipinrange(any ips,string ip):boolean

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
ips any  Yes 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  
  • ip string  Yes ip to search