« throttle.php

( version controlblameraw text )



<?php
# WARNING: This file is publicly viewable on the web. Do not put private data here.

# Initialize the array. Append to that array to add a throttle
$wmgThrottlingExceptions = [];

# $wmgThrottlingExceptions is an array of arrays of parameters:
# 'from' => date/time to start raising account creation throttle
# 'to' => date/time to stop
#
# Optional arguments can be added to set the value or restrict by client IP
# or project dbname. Options are:
# 'value' => new value for $wgAccountCreationThrottle (default: 50)
# 'IP' => client IP as given by $wgRequest->getIP() or array (default: any IP)
# 'range' => alternatively, the client IP CIDR ranges or array (default: any range)
# 'dbname' => a $wgDBname or array of dbnames to compare to
# (eg. enwiki, metawiki, frwikibooks, eswikiversity)
# Note that the limit is for the total number of account
# creations on all projects. (default: any project)
# Example:
# $wmgThrottlingExceptions[] = [
# 'from' => '2016-01-01T00:00 +0:00',
# 'to' => '2016-02-01T00:00 +0:00',
# 'IP' => '123.456.78.90',
# 'dbname' => [ 'xxwiki', etc. ],
# 'value' => xx
# ];
## Add throttling definitions below.

$wmgThrottlingExceptions[] = [ // T241705
'from' => '2020-01-17T10:00 GMT+1',
'to' => '2020-01-17T16:00 GMT+1',
'IP' => '81.39.185.6',
'dbname' => 'cawiki',
'value' => 30
];

$wmgThrottlingExceptions[] = [ // T240845
'from' => '2020-01-21T12:00 UTC',
'to' => '2020-01-21T16:00 UTC',
'IP' => '195.194.178.1',
'dbname' => 'enwiki',
'value' => 25 // 15 Expected
];

$wmgThrottlingExceptions[] = [ // T241414
'from' => '2020-01-27T12:00 UTC',
'to' => '2020-01-27T22:00 UTC',
'IP' => '200.9.3.65',
'dbname' => [ 'eswiki', 'enwiki', 'commonswiki', 'wikidatawiki' ],
'value' => 30 // expected 20
];

## Add throttling definitions above.