Manual:$wgBlockCIDRLimit

Default values
Note: This setting does not control Extension:GlobalBlocking.

Details
Maximum CIDR range when blocking an IP range.