- Since
- 1.28
Definition at line 27 of file ProxyLookup.php.
◆ __construct()
ProxyLookup::__construct |
( |
| $proxyServers, |
|
|
| $proxyServersComplex ) |
- Parameters
-
string[] | $proxyServers | Simple list of IPs |
string[] | $proxyServersComplex | Complex list of IPs/ranges |
Definition at line 48 of file ProxyLookup.php.
◆ isConfiguredProxy()
ProxyLookup::isConfiguredProxy |
( |
| $ip | ) |
|
◆ isTrustedProxy()
ProxyLookup::isTrustedProxy |
( |
| $ip | ) |
|
Checks if an IP is a trusted proxy provider.
Useful to tell if X-Forwarded-For data is possibly bogus. CDN cache servers for the site are whitelisted.
- Parameters
-
- Returns
- bool
Definition at line 80 of file ProxyLookup.php.
References and(), and isConfiguredProxy().
◆ $proxyIPSet
IPSet null ProxyLookup::$proxyIPSet |
|
private |
◆ $proxyServers
string [] ProxyLookup::$proxyServers |
|
private |
◆ $proxyServersComplex
string [] ProxyLookup::$proxyServersComplex |
|
private |
The documentation for this class was generated from the following file: