Manual:$wgBlockCIDRLimit

From MediaWiki.org
Jump to: navigation, search

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎日本語 • ‎polski • ‎português • ‎русский
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

Details[edit | edit source]

Maximum CIDR range when blocking an IP range.

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 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 (bug 44836).