$checkedIps
$checkedIps
Http utility functions.
checkIp4(?string $requestIp, string $ip) : bool
Compares two IPv4 addresses.
In case a subnet is given, it checks if it contains the request IP.
?string | $requestIp | |
string | $ip | IPv4 address or subnet in CIDR notation |
Whether the request IP matches the IP, or whether the request IP is within the CIDR subnet
checkIp6(?string $requestIp, string $ip) : bool
Compares two IPv6 addresses.
In case a subnet is given, it checks if it contains the request IP.
?string | $requestIp | |
string | $ip | IPv6 address or subnet in CIDR notation |
When IPV6 support is not enabled