◆ __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.
- Returns
- string|false
◆ getFor()
Extract 'for' IP address in FORWARDED header as in RFC 7239
- Parameters
-
- Returns
- string|false IP address, or false if invalid
◆ getProxyEnvConfig()
get configured proxy environment variable
- Returns
- string|bool
◆ getProxyHeader()
get the configured proxy header
- Returns
- string|false
◆ getXForwardedFor()
Process an X-Forwarded-For or Client-IP style header
- Parameters
-
string | $ip | expected to be an IP address |
- Returns
- string|false IP address, or false if invalid
◆ splitOnComma()
Split comma delimited string
- Parameters
-
- Returns
- string[]
◆ validateRoutableIP()
validateRoutableIP |
( |
|
$ip | ) |
|
|
protected |
Validate that an IP address is routable
- Parameters
-
string | $ip | an IP address to validate |
- Returns
- string|false IP address or false if invalid
◆ $proxyHeader
◆ $proxyHeaderName
◆ FORWARDED
const FORWARDED = 'HTTP_FORWARDED' |
◆ PROXY_ENVIRONMENT_VARIABLE
const PROXY_ENVIRONMENT_VARIABLE = 'proxy_env' |
The documentation for this class was generated from the following file:
- C:/xoops2511b2/htdocs/class/libraries/vendor/xoops/xmf/src/ProxyCheck.php