Kézikönyv:$wgPasswordAttemptThrottle

This page is a translated version of the page Manual:$wgPasswordAttemptThrottle and the translation is 100% complete.
User rights, access control and monitoring: $wgPasswordAttemptThrottle
Korlátozza az IP-címenkénti jelszó-próbálkozásokat.
Bevezetve:1.14.0 (r38886)(git #6fcfa981)
Eltávolítva:használatban
Megengedett értékek:(tömb)
Alapértelmezett érték:lásd alább

Részletek

A változó az egy IP-ről másodpercenként történő bejelentkezési kísérleteket számolja.

A beállítás működéséhez a $wgMainCacheType értékének CACHE_NONE-tól eltérőnek kell lennie.

Letiltáshoz add hozzá az alábbi kódot a LocalSettings.php-hoz:

$wgPasswordAttemptThrottle = false;
MediaWiki-verzió:
1.27

Több korlát is hozzáadható; ezek külön-külön lesznek kezelve.

Alapértelmezett érték

MediaWiki-verzió:
1.27
/**
 * Limit password attempts to X attempts per Y seconds per IP per account.
 *
 * Value is an array of arrays. Each sub-array must have a key for count
 * (ie count of how many attempts before throttle) and a key for seconds.
 * If the key 'allIPs' (case sensitive) is present, then the limit is
 * just per account instead of per IP per account.
 *
 * @since 1.27 allIps support and multiple limits added in 1.27. Prior
 *   to 1.27 this only supported having a single throttle.
 * @warning Requires $wgMainCacheType to be enabled
 */
$wgPasswordAttemptThrottle = [
	// Short term limit
	[ 'count' => 5, 'seconds' => 300 ],
	// Long term limit. We need to balance the risk
	// of somebody using this as a DoS attack to lock someone
	// out of their account, and someone doing a brute force attack.
	[ 'count' => 150, 'seconds' => 60 * 60 * 48 ],
];
MediaWiki-verziók:
1.14 – 1.26
/**
 * Limit password attempts to X attempts per Y seconds per IP per account.
 *
 * @warning Requires memcached.
 */
$wgPasswordAttemptThrottle = array( 'count' => 5, 'seconds' => 300 );

Lásd még