Manual:$wgBlockCIDRLimit/zh

From Linux Web Expert

Revision as of 05:37, 26 September 2023 by imported>LowensteinYang
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<translate> Access</translate>: $wgBlockCIDRLimit
封禁IP范围时最大的CIDR范围。
<translate> Introduced in version:</translate>1.16.0 (r58377)
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(正整数)
<translate> Default value:</translate>(见下文)

细节

封禁IP范围时最大的CIDR范围

默认值

MediaWiki版本:
<translate> ≥</translate> 1.20

MediaWiki 1.20wmf4及其后续版本: (参见gerrit:11259gerrit:11260

$wgBlockCIDRLimit = [
	'IPv4' => 16, # 比/16(64k的地址)大的區塊是不允許的。
	'IPv6' => 19,
];
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.19</tvar> is unsupported version</translate>">
1.16 – 1.19
<translate> MediaWiki versions:</translate>

MediaWiki 1.20wmf4前:

$wgBlockCIDRLimit = array(
       'IPv4' => 16, # Blocks larger than a /16 (64k addresses) will not be allowed
       'IPv6' => 64, # 2^64 = ~1.8x10^19 个地址
);
此设置无法控制Extension:GlobalBlocking ,它有自己的配置设置。