◆ checkIPv6CIDR()
static checkIPv6CIDR |
( |
|
$ip, |
|
|
|
$cidrnet |
|
) |
| |
|
staticprotected |
Checks if an IPv6 address $ip is part of the IPv6 CIDR block $cidrnet
- Paramètres
-
string | $ip | The IPv6 address to check, e.g. 21DA:00D3:0000:2F3B:02AC:00FF:FE28:9C5A |
string | $cidrnet | The IPv6 CIDR block, e.g. 21DA:00D3:0000:2F3B::/64 |
- Renvoie
- bool
◆ detectAndCleanIP()
static detectAndCleanIP |
( |
| ) |
|
|
staticprotected |
◆ detectIP()
Gets the visitor's IP address
- Renvoie
- string
◆ getIp()
Get the current visitor's IP address
- Renvoie
- string
◆ inet_to_bits()
static inet_to_bits |
( |
|
$inet | ) |
|
|
staticprotected |
Converts inet_pton output to bits string
- Paramètres
-
string | $inet | The in_addr representation of an IPv4 or IPv6 address |
- Renvoie
- string
◆ IPinList()
static IPinList |
( |
|
$ip, |
|
|
|
$ipTable = '' |
|
) |
| |
|
static |
Checks if an IP is contained in a list of IPs or IP expressions
- Paramètres
-
string | $ip | The IPv4/IPv6 address to check |
array | string | $ipTable | An IP expression (or a comma-separated or array list of IP expressions) to check against |
- Renvoie
- null|boolean True if it's in the list
Références $base, $i, et elseif.
◆ isIPv6()
Is it an IPv6 IP address?
- Paramètres
-
string | $ip | An IPv4 or IPv6 address |
- Renvoie
- boolean True if it's IPv6
◆ setAllowIpOverrides()
static setAllowIpOverrides |
( |
|
$newState | ) |
|
|
static |
Should I allow the remote client's IP to be overridden by an X-Forwarded-For or Client-Ip HTTP header?
- Paramètres
-
bool | $newState | True to allow the override |
- Renvoie
- void
Références true.
◆ setIp()
Set the IP address of the current visitor
- Paramètres
-
- Renvoie
- void
◆ workaroundIPIssues()
static workaroundIPIssues |
( |
| ) |
|
|
static |
Works around the REMOTE_ADDR not containing the user's IP
Références elseif.
◆ $allowIpOverrides
◆ $ip
La documentation de cette classe a été générée à partir du fichier suivant :