手册:$wgAccountCreationThrottle

From mediawiki.org
This page is a translated version of the page Manual:$wgAccountCreationThrottle and the translation is 86% complete.
访问: $wgAccountCreationThrottle
每个IP可创建的帐户的数量,0为禁用。
引进版本:1.3.0
移除版本:仍在使用
允许的值:(integer or array)
默认值:参见下方

详情

限制单个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 工單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, 0 to disable.
 *
 * @warning Requires $wgMainCacheType to be enabled
 */
$wgAccountCreationThrottle = 0;

另请参阅

參考資料