Manual:$wgRateLimits/zh

详情
此设置提供了一个简单的速率限制器，可以制止编辑泛滥和其他可能具有破坏性的行为，例如向其他用户发送电子邮件. 它设置在给定秒数内允许的最大操作数；如果超过，违规客户端会收到HTTP 429错误页面，直到该时间段过去. 要检查是否已超出速率限制，请使用User::pingLimiter函数

For example, to set a maximum of 4 edits per 60 seconds for "newbie" (i.e. non-autoconfirmed) users, add the following:

By setting  the limitations for a specific action can be marked as not skippable. If that is set, neither the noratelimit user right nor the setting have any effect for that action.

must be set to a value other than CACHE_NONE for rate limits to be enabled at all.

默认值
Extensions can provide additional keys for $wgRateLimit. E.g. provides a "badcaptcha" key, which allows to throttle users based on the number of wrong answers they have given to a captcha. An example might be:

This will allow newbie users not more than 100 wrong answers per day (86400 seconds).

版本差异

 * The 'mailpassword' array was added in MediaWiki 1.7.0.
 * The 'emailuser' array was added in MediaWiki 1.10.0.
 * The 'linkpurge' array was added in MediaWiki 1.22.0.
 * The 'renderfile' array was added in MediaWiki 1.22.0.

参见

 * noratelimit 用户权限
 * noratelimit 用户权限
 * noratelimit 用户权限
 * noratelimit 用户权限