« throttle.php

code review • git-log • git-blame • raw 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 per day)
#  'tempaccountvalue' => new value for $wgTempAccountCreationThrottle
#	(default: 6 per day)
#  'IP'	 => client IP as given by WebRequest::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'  => 100,
# 'tempaccountvalue' => 50,
# ];
## Add throttling definitions below.
#
## If you are adding a throttle exception with a 'from' time that is less than
## 72 hours in advance, you will also need to manually clear a cache after
## deploying your change to this file!
## https://wikitech.wikimedia.org/wiki/Increasing_account_creation_threshold

// T437609: Lift IP cap for edit-a-thon
$wmgThrottlingExceptions[] = [
	'from'   => '2026-09-29T15:30 -03:00',
	'to'	 => '2026-09-29T18:30 -03:00',
	'IP'	 => '163.10.36.4',
	'dbname' => [ 'eswiki', 'commonswiki', 'wikidatawiki' ],
	'value'  => 50,
	'tempaccountvalue' => 50,
];

$wmgThrottlingExceptions[] = [
	'from'   => '2026-10-27T15:30 -03:00',
	'to'	 => '2026-10-27T18:30 -03:00',
	'IP'	 => '163.10.36.4',
	'dbname' => [ 'eswiki', 'commonswiki', 'wikidatawiki' ],
	'value'  => 50,
	'tempaccountvalue' => 50,
];

$wmgThrottlingExceptions[] = [
	'from'   => '2026-11-24T15:30 -03:00',
	'to'	 => '2026-11-24T18:30 -03:00',
	'IP'	 => '163.10.36.4',
	'dbname' => [ 'eswiki', 'commonswiki', 'wikidatawiki' ],
	'value'  => 50,
	'tempaccountvalue' => 50,
];

// T437594: Lift IP cap for edit-a-thon
$wmgThrottlingExceptions[] = [
	'from'   => '2026-09-28T09:30 -03:00',
	'to'	 => '2026-09-28T13:00 -03:00',
	'IP'	 => '163.10.250.98',
	'dbname' => [ 'eswiki', 'commonswiki', 'wikidatawiki' ],
	'value'  => 50,
	'tempaccountvalue' => 50,
];

$wmgThrottlingExceptions[] = [
	'from'   => '2026-10-05T09:30 -03:00',
	'to'	 => '2026-10-05T13:00 -03:00',
	'IP'	 => '163.10.250.98',
	'dbname' => [ 'eswiki', 'commonswiki', 'wikidatawiki' ],
	'value'  => 50,
	'tempaccountvalue' => 50,
];

$wmgThrottlingExceptions[] = [
	'from'   => '2026-10-19T09:30 -03:00',
	'to'	 => '2026-10-19T13:00 -03:00',
	'IP'	 => '163.10.250.98',
	'dbname' => [ 'eswiki', 'commonswiki', 'wikidatawiki' ],
	'value'  => 50,
	'tempaccountvalue' => 50,
];

$wmgThrottlingExceptions[] = [
	'from'   => '2026-10-26T09:30 -03:00',
	'to'	 => '2026-10-26T13:00 -03:00',
	'IP'	 => '163.10.250.98',
	'dbname' => [ 'eswiki', 'commonswiki', 'wikidatawiki' ],
	'value'  => 50,
	'tempaccountvalue' => 50,
];

// T437470: Lift IP cap for edit-a-thon
$wmgThrottlingExceptions[] = [
	'from'   => '2026-10-16T08:30 +0:00',
	'to'	 => '2026-10-16T18:30 +0:00',
	'range'	 => '195.89.33.208/28',
	'dbname' => [ 'enwiki', 'commonswiki' ],
	'value'  => 60,
	'tempaccountvalue' => 50,
];

$wmgThrottlingExceptions[] = [
	'from'   => '2026-10-16T08:30 +0:00',
	'to'	 => '2026-10-16T18:30 +0:00',
	'range'	 => '131.111.184.0/23',
	'dbname' => [ 'enwiki', 'commonswiki' ],
	'value'  => 60,
	'tempaccountvalue' => 50,
];

// T439991: Lift IP cap for edit-a-thon
$wmgThrottlingExceptions[] = [
	'from'   => '2026-10-15T20:00 -03:00',
	'to'	 => '2026-10-15T22:00 -03:00',
	'IP'	 => '163.10.15.251',
	'dbname' => [ 'eswiki', 'commonswiki', 'wikidatawiki' ],
	'value'  => 50,
	'tempaccountvalue' => 50,
];

$wmgThrottlingExceptions[] = [
	'from'   => '2026-10-29T20:00 -03:00',
	'to'	 => '2026-10-29T22:00 -03:00',
	'IP'	 => '163.10.15.251',
	'dbname' => [ 'eswiki', 'commonswiki', 'wikidatawiki' ],
	'value'  => 50,
	'tempaccountvalue' => 50,
];

## Add throttling definitions above.