Manual:$wgBlockCIDRLimit

From MediaWiki.org
Jump to: navigation, search
Access: $wgBlockCIDRLimit
Maximum CIDR range when blocking an IP range.
Introduced in version: 1.16.0 (r58377)
Removed in version: still in use
Allowed values: positive integer
Default value: (See Below)

Other settings: Alphabetical | By Function


Default values[edit | edit source]

Before MediaWiki 1.20wmf5:

$wgBlockCIDRLimit = array(
       'IPv4' => 16, # Individual rangeblocks larger than a /16 (65,536 addresses) will not be allowed
       'IPv6' => 64, # 2^64 = ~1.8x10^19 addresses
);

MediaWiki 1.20wmf5 and later:

$wgBlockCIDRLimit = array (
       'IPv4' => 16,
       'IPv6' => 19, # 2^109 = ~6.5x10^32 addresses
);

Note: This setting does not control Extension:GlobalBlocking. Regardless of this setting, GlobalBlocking can block IPv4 ranges up to /16 only, but has no limit on IPv6 range sizes (bugzilla:44836).

Details[edit | edit source]

Maximum CIDR range when blocking an IP range.

Language: English  • français • 日本語 • русский