[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/symfony/http-foundation/ -> IpUtils.php (summary)

(no description)

File Size: 156 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

IpUtils:: (4 methods):
  __construct()
  checkIp()
  checkIp4()
  checkIp6()


Class: IpUtils  - X-Ref

Http utility functions.

__construct()   X-Ref
This class should not be instantiated.


checkIp($requestIp, $ips)   X-Ref
Checks if an IPv4 or IPv6 address is contained in the list of given IPs or subnets.

param: string       $requestIp IP to check
param: string|array $ips       List of IPs or subnets (can be a string if only a single one)
return: bool Whether the IP is valid

checkIp4($requestIp, $ip)   X-Ref
Compares two IPv4 addresses.
In case a subnet is given, it checks if it contains the request IP.

param: string $requestIp IPv4 address to check
param: string $ip        IPv4 address or subnet in CIDR notation
return: bool Whether the request IP matches the IP, or whether the request IP is within the CIDR subnet

checkIp6($requestIp, $ip)   X-Ref
Compares two IPv6 addresses.
In case a subnet is given, it checks if it contains the request IP.

param: string $requestIp IPv6 address to check
param: string $ip        IPv6 address or subnet in CIDR notation
author: David Soria Parra <dsp at php dot net>
return: bool Whether the IP is valid



Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1