IP CIDR Matcher is a lightweight utility extension that checks whether a given IP address (IPv4 or IPv6) belongs to one or more CIDR ranges.
This component is designed for server-side use in OutSystems applications, especially when implementing IP-based access control, environment restrictions, or feature gating.
It supports common real-world scenarios such as:
CIDR notation (e.g. 192.168.1.0/24, 2001:db8::/32)
192.168.1.0/24
2001:db8::/32
Single IP rules (treated as /32 for IPv4 or /128 for IPv6)
/32
/128
IPv4 and IPv6 matching
X-Forwarded-For style input (e.g. "client, proxy1, proxy2")
"client, proxy1, proxy2"
IP strings with port numbers (e.g. "1.2.3.4:443", "[2001:db8::1]:443")
"1.2.3.4:443"
"[2001:db8::1]:443"
The extension focuses only on CIDR matching logic.IP address retrieval (e.g. from request headers) is intentionally left to the application layer, allowing flexible integration with different deployment environments.