Nemo bis has uploaded a new change for review.
https://gerrit.wikimedia.org/r/195886
Change subject: Set $wgRateLimits['badcaptcha'] to counter bots
......................................................................
Set $wgRateLimits['badcaptcha'] to counter bots
Bug: T92376
Change-Id: I20f33c3053ed3cfd1a8e8e1e23a63a326fac96a9
---
M wmf-config/InitialiseSettings.php
M wmf-config/throttle.php
2 files changed, 13 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config
refs/changes/86/195886/1
diff --git a/wmf-config/InitialiseSettings.php
b/wmf-config/InitialiseSettings.php
index a35f774..d9db477 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -6675,6 +6675,17 @@
'ip' => array( 8, 60 ),
'newbie' => array( 8, 60 ),
),
+ 'badcaptcha' => array( // Bug T92376
+ // Mainly for account creation by unregistered spambots.
+ // A human probably gives up after a handful attempts to
+ // register, but ip/newbie editing needs to be
considered too.
+ 'ip' => array( 8, 60 ),
+ 'newbie' => array( 8, 60 ),
+ // Mainly to catch linkspam bot edits. Account
creations by users?
+ // Some wikis request tons of captchas to users under
50 edits:
+ // the limit needs to be higher than any human can
conceivably do.
+ 'user' => array( 20, 60 ),
+ ),
'mailpassword' => array(
// 5 password reminders per hour per IP
'ip' => array( 5, 3600 ),
diff --git a/wmf-config/throttle.php b/wmf-config/throttle.php
index 7ad710b..29b8642 100644
--- a/wmf-config/throttle.php
+++ b/wmf-config/throttle.php
@@ -100,6 +100,8 @@
} else {
$wgAccountCreationThrottle = 50; // Provide some sane
default
}
+ $wgRateLimits['badcaptcha']['ip'] = ( 1000, 86400);
+ $wgRateLimits['badcaptcha']['newbie'] = ( 1000, 86400);
return; # No point in proceeding to another entry
}
};
--
To view, visit https://gerrit.wikimedia.org/r/195886
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I20f33c3053ed3cfd1a8e8e1e23a63a326fac96a9
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Nemo bis <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits