Manual:$wgAccountCreationThrottle/zh

Category:MediaWiki configuration settings/zh#AccountCreationThrottleCategory:MediaWiki configuration settings introduced in version 1.3.0/zh#AccountCreationThrottleCategory:MediaWiki configuration settings still in use/zh#AccountCreationThrottleCategory:Permission variables/zh#AccountCreationThrottle
访问: $wgAccountCreationThrottle
每个IP可创建的帐户的数量,0为禁用。
引进版本:1.3.0
移除版本:仍在使用
允许的值:(integer or array)
参见下方

详情

限制单个IP地址在24小时内的帐户创建数量(不论是否为注册用户),设为0表示禁用。

具有noratelimit 权限的用户创建的帐户不计算在内。

The ExemptFromAccountCreationThrottle hook can also be used to exempt an IP address. When the throttle is hit, the AuthenticationAttemptThrottled hook gets called.

在维基媒体基金会的维基上这一值被设置为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 T233704

MediaWiki版本:
1.28
/**
 * 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,
] ];
MediaWiki版本:
1.3 1.27
/**
 * Number of accounts each IP address may create per day, 0 to disable.
 *
 * @warning Requires $wgMainCacheType to be enabled
 */
$wgAccountCreationThrottle = 0;

另请参阅


參考資料

Category:MediaWiki configuration settings/zh Category:MediaWiki configuration settings introduced in version 1.3.0/zh Category:MediaWiki configuration settings still in use/zh Category:Permission variables/zh