Manual:$wgProxyList

From MediaWiki.org
Jump to: navigation, search
This page is a translated version of the page Manual:$wgProxyList and the translation is 50% complete.

Other languages:
English • ‎español • ‎日本語 • ‎polski • ‎русский
Proxies: $wgProxyList
Big list of banned IP addresses.
導入されたバージョン: 1.3.0 (r4130)
除去されたバージョン: 使用中
可能な値: 配列
既定値: array()
他の設定: アルファベット順 | 機能順

詳細[edit]

Big list of banned IP addresses.

例:

$wgProxyList = array(
    '127.0.0.1',
);

[edit]

Copy and paste a comma-delimited list (e.g. 1.0.170.183,1.0.170.188,1.0.170.234,1.0.170.24) of open proxies into MediaWiki:Openproxylist; then put the following in LocalSettings.phpManual:LocalSettings.php:

$wgHooks['userCan'][] = 'getOpenProxyList';
$gotOpenProxyList = false;
function getOpenProxyList( $article, $fields ) {
	global $gotOpenProxyList, $wgProxyList;
	if ( !$gotOpenProxyList ) {
		$wgProxyList = explode( ',', wfMsg( 'openproxylist' ) );
	}
	$gotOpenProxyList = true;
	return true;
}

コメント[edit]