isIPInRange

Determines whether the given IP address is in a specific range

isIPInRange(ips, ip) → returns boolean

This function requires Lucee.  Not supported on Adobe ColdFusion, etc.

isIPInRange Argument Reference

ips any
Required

comma-delimited list or array as ip range, either a specific ip address, a from to range or with * wildcard

ip string
Required

ip to test

Examples
Sample code invoking the isIPInRange function


Fork me on GitHub