isInNetEx()

Microsoft IPv6 extension. True if ip is inside the CIDR prefix, e.g. isInNetEx(ip, "2001:db8::/32").

isInNetEx(ip, prefix)  →  boolean

Used in under 1% of the real PAC files in the PAC file statistics.

Takes a CIDR prefix instead of a mask. Only in engines with the “Ex” extensions.

Example

if (isInNetEx(host, "2001:db8::/32")) { /* ... */ }

Engine notes

EngineBehaviourSource
winhttpWorks for IPv4 and IPv6 addresses with a prefix ("10.0.0.0/8", "fd00::/16"); without a prefix it is false. Host names are not looked up, so isInNetEx("localhost", "127.0.0.0/8") is false. "/0" gives false, and so does an address with leading zeros.lab, verified 2026-10-11
Windows 11 25H2

Availability

Derived from each engine's vendored helper library plus its native bindings (see engines).
Functionchromium
<=51
chromium
>=52
firefox
all
pacparser
<=1.4.6
pacparser
>=1.5.1
winhttp
11-25H2
wininet
11-25H2
reference
all
isInNetExyesyesnoyesyesyesyesno

Related rules

Last updated: