Railo 4.2 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.

Beispiel

isipinrange(any ips,string ip):boolean

Argumente

Die Argumente für diese Funktion sind fest vorgegeben. Ausser den nachfolgenden Argumenten dürfen keine weiteren verwendet werden.
Name Typ Required Beschreibung
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