Talk:Range blocks

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search

I made a range block of 64.107.0.0/22 in response to the Star Trek vandalism on 16th April for a period of 7 days. Today (April 20th) I find user 64.107.1.81 merrily editing Leonard McCoy again. Is something wrong with blocking, or did I get the block wrong? (PS I've blocked the same user for 90 days this time). DJ Clayworth 17:26, 20 Apr 2004 (UTC)

it seems that 0.0/22 means 0.0 to 0.22 (23 IPs). And now look at the new IP...
That is *not* true. See m:Range blocks. As I read this, blocking 64.107.0.0/22 should have taken out 64.107.0.0 to 64.107.3.255 →Raul654 18:40, Apr 20, 2004 (UTC)
That's my understanding. Is there somebody who could check to see if this is a bug, or can pass it to the appropriate person? DJ Clayworth 20:52, 20 Apr 2004 (UTC)

Because I didn't understand the explanation on this page, I've added a (foolproof?) section at the bottom explaining it in detail. Since I've only just learned this stuff myself I may haver made some errors. So would someone with the technical know how please go over my explanation and weed out any mistakes. TIA. Theresa knott 10:01, 2 Jul 2004 (UTC)

The sysop ability to create range blocks is disabled.[edit]

I'm trying to set a range of ip's to block, and i think i'm doing it correctly...However, when i set the block, i get this error, "The sysop ability to create range blocks is disabled." Can anyone help me out here? I couldn't find any config file or anything where i would enable range blocks. Any ideas? --Duke33 00:31, 26 Nov 2004 (UTC)

to enable ranges...[edit]

Taking a look at includes/SpecialBlockip.php, the variable $wgSysopRangeBans needs to be set to "true" in your LocalSettings.php ... this should really be explained here.

Looks like the range is further restricted to 16 < CIDR < 31, which means 192.168.0.0/16 is not acceptible. I want to be able to block ALL of APNIC (Asia), which would require CIDRs of 7 and 8. This is not possible given the current code. To change this, modify the if statement within if ( $wgSysopRangeBans ). Note that this is only necessary to knock out a whole continent; many wiki maintainers take out 220.0.0.0/7, for example.

# line 102 of mediawiki-1.3.9/includes/SpecialBlockip.php
#if ( $matches[2] > 31 || $matches[2] < 16 ) {
if  ( $matches[2] > 32 || $matches[2] < 5 ) { # increase range

(Disclaimer: I am not a PHP expert)

-- Adam Katz 17:05, 6 Jan 2005 (UTC)

Note: a /32 range block would be the same as a single ip block so allowing them would probablly just confuse. 81.86.129.150 17:04, 19 April 2006 (UTC)

Sample block chart[edit]

I've added a sample block chart that will hopefully help conceptually. MPerel 18:43, 8 August 2005 (UTC)

I've found a couple of mistakes, fixing. Redwolf24 04:15, 13 November 2005 (UTC)

Help me to set range blocks on the Yoruba wiki[edit]

Can someone come to my talk page on either the English or the Yoruba Wikipedia to explain how to set range blocks and how to edit LocalSettings.php if needed? This page is not clear on what I have to do to enable or use this feature. — mark 11:45, 22 May 2006 (UTC)