◆ __construct()
◆ get()
Get IP address from proxy header specified in $xoopsConfig['proxy_env']
Returns proxy revealed valid client address, or false if such address was not found.
- Renvoie
- string|false
◆ getFor()
Extract 'for' IP address in FORWARDED header as in RFC 7239
- Paramètres
-
- Renvoie
- string|false IP address, or false if invalid
◆ getProxyEnvConfig()
get configured proxy environment variable
- Renvoie
- string|bool
◆ getProxyHeader()
get the configured proxy header
- Renvoie
- string|false
◆ getXForwardedFor()
Process an X-Forwarded-For or Client-IP style header
- Paramètres
-
string | $ip | expected to be an IP address |
- Renvoie
- string|false IP address, or false if invalid
◆ splitOnComma()
Split comma delimited string
- Paramètres
-
- Renvoie
- string[]
◆ validateRoutableIP()
validateRoutableIP |
( |
|
$ip | ) |
|
|
protected |
Validate that an IP address is routable
- Paramètres
-
string | $ip | an IP address to validate |
- Renvoie
- string|false IP address or false if invalid
◆ $proxyHeader
◆ $proxyHeaderName
◆ FORWARDED
const FORWARDED = 'HTTP_FORWARDED' |
◆ PROXY_ENVIRONMENT_VARIABLE
const PROXY_ENVIRONMENT_VARIABLE = 'proxy_env' |
La documentation de cette classe a été générée à partir du fichier suivant :
- XoopsCore25-2.5.11-Beta1/htdocs/class/libraries/vendor/xoops/xmf/src/ProxyCheck.php