Manual:$wgProxyList/pl
Jump to navigation
Jump to search
Outdated translations are marked like this.
Proxies: $wgProxyList | |
---|---|
Adres IP lub lista adresów IP do zablokowania |
|
Wprowadzono w wersji: | 1.3.0 (r4130) |
Usunięto w wersji: | nadal w użyciu |
Dozwolone wartości: | (tablica), (string) |
Domyślna wartość: | [] |
Inne ustawienia: Alfabetycznie | Według funkcji |
Szczegóły
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.
Przykład
A list of IP addresses
$wgProxyList = [
'127.0.0.1',
];
From an interface message
Skopiuj i wklej listę rozdzielonych przecinkami (np. 1.0.170.183,1.0.170.188,1.0.170.234,1.0.170.24) otwartych serwerów proxy do "MediaWiki:Openproxylist"; następnie umieść to w 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;
}
Zobacz też
$wgProxyWhitelist
- Allows to directly exempt an individual IP address or a list of IP addresses$wgEnableDnsBlacklist
- Allows to use a DNS blacklist service to block IP addresses- lista ze stopforumspam.com znanych adresów IP botów