Manual:$wgProxyList/ru

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

Other languages:
English • ‎español • ‎magyar • ‎polski • ‎русский • ‎日本語
Proxies: $wgProxyList
IP address or a list of IP addresses to be banned
Появилось, начиная с версии:1.3.0 (r4130)
Удалено в версии:все еще используется
Допустимые значения:(array)
Значение по умолчанию:[]

Details

Sets an IP address or a list of IP addresses to be banned. (Originally meant for presumed open proxies that would most likely only be used for vandalism and block evasion, but can be used for blocking any kind of unwanted actors.)

Example:

$wgProxyList = array(
	'127.0.0.1',
);

Example

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.php :

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

See also