|
MediaWiki master
|
Public Member Functions | |
| __construct ( $proxyServers, $proxyServersComplex, HookContainer $hookContainer, BagOStuff $cache) | |
| isConfiguredProxy ( $ip) | |
| Checks if an IP matches a proxy we've configured. | |
| isTrustedProxy ( $ip) | |
| Checks if an IP is a trusted proxy provider. | |
Definition at line 18 of file ProxyLookup.php.
| MediaWiki\Request\ProxyLookup::__construct | ( | $proxyServers, | |
| $proxyServersComplex, | |||
| HookContainer | $hookContainer, | ||
| BagOStuff | $cache ) |
| string[] | $proxyServers | Simple list of IPs |
| string[] | $proxyServersComplex | Complex list of IPs/ranges |
| HookContainer | $hookContainer | |
| BagOStuff | $cache | In-process cache for the IPSet object |
Definition at line 41 of file ProxyLookup.php.
| MediaWiki\Request\ProxyLookup::isConfiguredProxy | ( | $ip | ) |
Checks if an IP matches a proxy we've configured.
| string | $ip |
Definition at line 78 of file ProxyLookup.php.
Referenced by MediaWiki\Request\ProxyLookup\isTrustedProxy().
| MediaWiki\Request\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 allowed.
| string | $ip |
Definition at line 96 of file ProxyLookup.php.
References MediaWiki\Request\ProxyLookup\isConfiguredProxy().