Manual:$wgBlockCIDRLimit

Details
Maximum CIDR range when blocking an IP range.