Property | Type | Description | |
---|---|---|---|
$settings | array |
Method | Description | |
---|---|---|
handle ( |
Method | Description | |
---|---|---|
getFirstTrustedProxyHeaderValue ( string $type, |
Convenience getter for the first value of a given trusted proxy header. | |
getTrustedClientIpAddress ( |
Get the most trusted client's IP address. | |
getTrustedProxyHeaderValues ( string $type, |
Get the values of trusted proxy header. | |
ipIsTrustedProxy ( string $ipAddress ) : boolean | Check if the given IP address is from a trusted proxy. | |
isFromTrustedProxy ( |
Check if the given request is from a trusted proxy. |
protected getFirstTrustedProxyHeaderValue ( string $type, |
||
$type | string | One of the HEADER_* constants |
$request | The request to get the trusted proxy header from | |
return | mixed | null | The first value of this header type or NULL if this header type should not be trusted |
protected getTrustedClientIpAddress ( |
||
$request | ||
return | string | boolean | The most trusted client's IP address or FALSE if no remote address can be found |
protected getTrustedProxyHeaderValues ( string $type, |
||
$type | string | One of the HEADER_* constants |
$request | The request to get the trusted proxy header from | |
return | Iterator | An array of the values for this header type or NULL if this header type should not be trusted |
protected ipIsTrustedProxy ( string $ipAddress ) : boolean | ||
$ipAddress | string | |
return | boolean |
protected isFromTrustedProxy ( |
||
$request | ||
return | boolean | If the server REMOTE_ADDR is from a trusted proxy |