Manual:$wgAccountCreationThrottle/zh
From Linux Web Expert
<translate> Access</translate>: $wgAccountCreationThrottle | |
---|---|
每个IP可创建的帐户的数量,0为禁用。 |
|
<translate> Introduced in version:</translate> | 1.3.0 |
<translate> Removed in version:</translate> | <translate> still in use</translate> |
<translate> Allowed values:</translate> | (integer or array) |
<translate> Default value:</translate> | 参见下方 |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
详情
限制单个IP地址在24小时内的帐户创建数量(不论是否为注册用户),设为0表示禁用。
具有noratelimit
权限的用户创建的帐户不计算在内。
在维基媒体基金会的维基上这一值被设置为6。[1]
$wgMainCacheType
必须设置为CACHE_NONE
之外的值才能使此设置生效。
When using a captcha, failed captcha attempts increment the number of account creation for the IP address. Have this in mind if you have a captcha implemented and you want to set the account creation limit too low. See <translate> task <tvar name=1>T233704</tvar></translate>
默认值
<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>"><translate> ≥</translate> 1.28
<translate> MediaWiki version:</translate> |
/**
* Number of accounts each IP address may create per specified period(s).
*
* @par Example:
* @code
* $wgAccountCreationThrottle = [
* // no more than 100 per month
* [
* 'count' => 100,
* 'seconds' => 30*86400,
* ],
* // no more than 10 per day
* [
* 'count' => 10,
* 'seconds' => 86400,
* ],
* ];
* @endcode
*
* @warning Requires $wgMainCacheType to be enabled
*/
$wgAccountCreationThrottle = [ [
'count' => 0,
'seconds' => 86400,
] ];
1.3 – 1.27
<translate> MediaWiki versions:</translate> |
/**
* Number of accounts each IP address may create, 0 to disable.
*
* @warning Requires $wgMainCacheType to be enabled
*/
$wgAccountCreationThrottle = 0;
另请参阅