Jump to content


From mediawiki.org
This page is a translated version of the page Manual:$wgProxyList and the translation is 53% complete.
Droits utilisateur, contrôle d'accès et supervision: $wgProxyList
A list of IP addresses to be banned
Introduit dans la version :1.3.0 (r4130)
Retiré dans la version :Encore utilisé
Valeurs autorisées :(tableau), (chaîne)
Valeur par défaut :[]


Sets 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.)

This can be an array of IP addresses or a string with the path to a file with each IP address on a separate line.


Une liste d'adresses IP

$wgProxyList = [

D'un message d'interface

Copy and paste a comma-delimited list (e.g.,,, 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( ',', wfMessage( 'openproxylist' )->plain() );
	$gotOpenProxyList = true;
	return true;

Voir aussi