Page MenuHomePhabricator

Increase $wgAccountCreationThrottle for Portuguese Wikibooks
Closed, ResolvedPublic

Description

Hi!

Per request made on Portuguese Wikibooks (see URL [1]), please increase temporarily the value of $wgAccountCreationThrottle during 2 weeks, from February 14 to February 25.

This will be needed in order to continue the work on book [[b:pt:Logística]], which started last year[2]. The students will create the accounts during the first classes, under supervision of it's teacher, which will be coordinating that collaborative project during this semester.

There was a similar request on Bug 21510, where you can find the lines of code previously used to implement something like this.

PS: Platonides, could you please check the code below to see if I've adapted it correctly?


if ( $wgDBname == 'ptwikibooks' ) {

  1. Account creation throttle disabled for "Logística 2011" project from [[FCT]] / [[New University of Lisbon]] if ( time() > strtotime( '2011-02-14T08:00 +1:00' ) && time() < strtotime( '2011-02-25T23:00 +1:00' ) ) && (wfGetIP() == '193.136.126.36' || wfGetIP() == '193.136.124.200') ) { $wgAccountCreationThrottle = 100; }

}

[1] http://pt.wikibooks.org/wiki/T%C3%B3pico:Wikilivros:Di%C3%A1logos_comunit%C3%A1rios/Abertura_de_contas_por_IP_partilhado?uselang=en
[2] [[b:pt:Special:Contributions/193.136.126.36]]


Version: unspecified
Severity: normal
URL: http://pt.wikibooks.org/wiki/T%C3%B3pico:Wikilivros:Di%C3%A1logos_comunit%C3%A1rios/Abertura_de_contas_por_IP_partilhado?uselang=en

Details

Reference
bz27172

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:14 PM
bzimport set Reference to bz27172.
bzimport added a subscriber: Unknown Object (MLST).

jeluf wrote:

Your change has been completed.
Please reopen this ticket if anything went wrong.

The following configuration settings have been changed:

Index: CommonSettings.php

  • CommonSettings.php (revision 1569)

+++ CommonSettings.php (working copy)
@@ -2336,6 +2336,19 @@

  1. $wgAPIModules['parse'] = 'ApiDisabled'; #}

+if ( $wgDBname == 'ptwikibooks' ) {
+ # Account creation throttle disabled for "Logística 2011" project from
+ # [[FCT]] / [[New University of Lisbon]]
+ if ( ( time() > strtotime( '2011-02-14T08:00 +1:00' ) )
+ && ( time() < strtotime( '2011-02-25T23:00 +1:00' ) )
+ && ( wfGetIP() == '193.136.126.36' || wfGetIP() == '193.136.124.200') )
+ {
+ $wgAccountCreationThrottle = 100;
+ }
+}
+
+
+

  1. THIS MUST BE AFTER ALL EXTENSIONS ARE INCLUDED #
  2. REALlY ... were not kidding here ... NO EXTENSIONS AFTER

You can find the entire config file at
http://noc.wikimedia.org/conf/highlight.php?file=InitialiseSettings.php

Where you really using one of those two ips?

(In reply to comment #3)

Where you really using one of those two ips?

I believe so, although I don't know how to check if those accounts were indeed created from the given IPs.
However, I do know that those LIPs were used in some edits to the book entitled "Logística":

  • [[b:pt:Special:Contributions/193.136.124.200]]
  • [[b:pt:Special:Contributions/193.136.126.36]]

By the way, after exceeding the limit of 6, some accounts were created by going to another Wikimedia Project (where the limit wasn't reached yet), create the account there, and then come back to Portuguese Wikibooks to start editing. Is the wgAccountCreationThrottle supposed to work like that with SUL or is this just a bug which allow us to workaround the limit?

Should we close this bug and reopen it when the feature is needed again? Or is it better to open different bugs for each time we need it (until 25000 is fixed)?

$wgAccountCreationThrottle is per wiki. You took advantage of a hole in the SUL system. I refrained from telling about that way to evade our checks in the past, though, since it can be done for the bad, too.

I've gone ahead and disabled this again since the event described in comment 0 is long since over. If you need the throttle removed for another event please open a new bug.

(In reply to comment #5)

Created bug 41284 for that.