Manual:Hooks/IsTrustedProxy
From MediaWiki.org
| IsTrustedProxy | |
|---|---|
| Available from version 1.9.0 Allows an extension to set an IP as trusted or not. |
|
Define function: |
public static function onIsTrustedProxy( $ip, $trusted ) { ... }
|
Attach hook: |
$wgHooks['IsTrustedProxy'][] = 'MyExtensionHooks::onIsTrustedProxy'; |
| Called from: | ProxyTools.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:IsTrustedProxy extensions.
[edit] Details
$ip - The IP address of the proxy.
$trusted - A bool indicating the IP is or isn't trusted.
