Increasing account creation threshold

From Wikitech
(Difference between revisions)
Jump to: navigation, search
(updating per conversation with Reedy & Dereckson)
(remove "best" etc.: don't judge; wikify)
Line 1: Line 1:
There are cases when the Wikimedia Foundation or others will host events that have a tendency of creating a large amount of new account requests during a short window of time. In order to not interrupt the activity it is best if the IP is effectively white listed to be excluded from rate limiting. This can easily be done if you add an '''$wmfThrottlingExceptions''' array in '''throttle.php''' (operations/mediawiki-config.git / wmf-config / throttle.php)
+
There are cases when the Wikimedia Foundation or others will host events that have a tendency of creating a large amount of new account requests during a short window of time from a single IP or a few IPs. The IP [[MetaWikipedia:Mass_account_creation#Requesting_temporary_lift_of_IP_cap|can be effectively white listed to be excluded from rate limiting]]. This can easily be done if you add an '''$wmfThrottlingExceptions''' array in '''throttle.php''' (operations/mediawiki-config.git / wmf-config / throttle.php)
  
 
<pre>
 
<pre>
Line 11: Line 11:
 
</pre>
 
</pre>
  
If the ip is not known then you can also set '''[http://www.mediawiki.org/wiki/Manual:$wgAccountCreationThrottle wgAccountCreationThrottle]''' to a value higher then '''0'''
+
If the IP is not known then you can also set '''[http://www.mediawiki.org/wiki/Manual:$wgAccountCreationThrottle wgAccountCreationThrottle]''' to a value higher then '''0'''
  
 
An example of this would be as follows in '''CommonSettings.php'''
 
An example of this would be as follows in '''CommonSettings.php'''
Line 27: Line 27:
  
 
</pre>
 
</pre>
 +
 +
[[Category:How-To]]

Revision as of 07:55, 19 October 2012

There are cases when the Wikimedia Foundation or others will host events that have a tendency of creating a large amount of new account requests during a short window of time from a single IP or a few IPs. The IP can be effectively white listed to be excluded from rate limiting. This can easily be done if you add an $wmfThrottlingExceptions array in throttle.php (operations/mediawiki-config.git / wmf-config / throttle.php)

$wmfThrottlingExceptions[] = array(
       'from'   => '2012-10-06T00:00 +0:00',
       'to'     => '2012-10-06T23:59 +0:00',
       'IP'     => '12.183.19.7',
       'dbname' => array( 'enwiki', 'commonswiki' ),
       'value'  => '50',
);

If the IP is not known then you can also set wgAccountCreationThrottle to a value higher then 0

An example of this would be as follows in CommonSettings.php

if ( $wgDBname == 'idwiki' ) {
        # Account creation throttle disabled for outreach event
        # Contact: Siska Doviana <serenity@gmail.com>
        if ( time() > strtotime( '2008-08-08T08:00 +7:00' )
          && time() < strtotime( '2008-08-08T19:00 +7:00' ) )
        {
                $wgAccountCreationThrottle = 300;
        }
}

Personal tools
Namespaces

Variants
Actions
Navigation
Ops documentation
Wiki
Toolbox