Imported from https://github.com/wikimedia/countervandalism-CVNBot/issues/10.
@Krinkle@github.com wrote on 23 Nov 2012:Imported from https://jira.toolserver.org/browse/SWMTBOT-7
Krinkle wrote on 3 June 2010:It's been suggested by mike in 2008: support for ranges should be implemented.
At the very least the ranges MediaWiki also supports in blocking, but I think it'd be better to extend this to a more flexible range, and as a bonus put in a ranges MediaWiki supports.
So that for example the following would be possible
- CVNBot bl add 127.0.0.1-127.0.1.214
And to make make it compatible with Autoblacklistings that follow a range-block:
- CVNBot bl add 127.0.0.0/25 x=0 r=Autoblacklist: Repeated vandalism, {{schoolblock}} on commons.wikimedia
which the software would convert to
- CVNBot bl add 127.0.0.0-127.0.0.127
See also: https://commons.wikimedia.org/wiki/User:Kanonkas/Tools#Range_block_calculators
Then when performing the "intel" or "bl show" command it could return something like this
- CVNBot intel 127.0.0.50 CVNBot: 127.0.0.50 in range 127.0.0.0-127.0.0.127 is on global blacklist , added by Krinke until the end of time ("Autoblacklist: Repeated vandalism, {{schoolblock}} on commons.wikimedia")
Mike.lifeguard wrote on 3 June 2010:Using CIDR is standard; we should do so here. Perhaps a utility function to convert back and forth would be useful though.