Extension:LoginNotify

From mediawiki.org
This page is a translated version of the page Extension:LoginNotify and the translation is 41% complete.
Diese Erweiterung ist üblicherweise in MediaWiki 1.40 und darüber enthalten. Daher muss sie nicht erneut heruntergeladen werden. Allerdings müssen die folgenden Anweisungen trotzdem beachtet werden.
MediaWiki-Erweiterungen
LoginNotify
Freigabestatus: stabil
Einbindung Benutzeraktivität
Beschreibung Benutzer über verdächtige Anmeldungen benachrichtigen
Autor(en) Brian Wolff (BawolffDiskussion)
Letzte Version 0.1
MediaWiki >= 1.42
Datenbankänderungen Ja
Composer mediawiki/loginnotify
Tabellen loginnotify_seen_net
Lizenz MIT-Lizenz
Herunterladen
  • $wgLoginNotifySeenBucketSize
  • $wgLoginNotifyExpiryNewIP
  • $wgLoginNotifyExpiryKnownIP
  • $wgLoginNotifyEnableOnSuccess
  • $wgLoginNotifyUseSeenTable
  • $wgLoginNotifyAttemptsKnownIP
  • $wgLoginNotifyCacheLoginIPExpiry
  • $wgLoginNotifyCookieExpire
  • $wgLoginNotifyUseCentralId
  • $wgLoginNotifyCookieDomain
  • $wgLoginNotifyUseCheckUser
  • $wgLoginNotifySeenExpiry
  • $wgLoginNotifyMaxCookieRecords
  • $wgLoginNotifyAttemptsNewIP
  • $wgLoginNotifyCheckKnownIPs
  • $wgLoginNotifySecretKey
Quarterly downloads 35 (Ranked 114th)
Public wikis using 904 (Ranked 277th)
Übersetze die LoginNotify-Erweiterung, wenn sie auf translatewiki.net verfügbar ist
Probleme Offene Aufgaben · Einen Fehler melden

Die Erweiterung LoginNotify benachrichtigt Sie, wenn sich jemand bei Ihrem Konto anmeldet. Sie kann so konfiguriert werden, dass sie nach einer bestimmten Anzahl fehlgeschlagener Anmeldeversuche Warnungen ausgibt (Die Anzahl ist konfigurierbar und kann sich zwischen unbekannten IPs/Geräten und bekannten IPs/Geräten unterscheiden). Außerdem können Sie Erweiterung:Echo -Hinweise (die auch per E-Mail gesendet werden können) für erfolgreiche Anmeldungen von IPs erhalten, die Sie normalerweise nicht verwenden. Es kann optional in die CheckUser -Erweiterung integriert werden, um festzustellen, ob die Anmeldung von einer IP-Adresse stammt, die Sie normalerweise nicht verwenden. Es kann auch ein Cookie setzen, um festzustellen, ob der Login von einem Gerät stammt, das Sie normalerweise benutzen.

Installation

This extension requires the Echo extension to be installed.

  • Die Erweiterung herunterladen und die Datei(en) in ein Verzeichnis namens LoginNotify im Ordner extensions/ ablegen.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/LoginNotify
  • Folgenden Code am Ende deiner LocalSettings.php -Datei einfügen:
    wfLoadExtension( 'LoginNotify' );
    
  • Konfiguriere nach Bedarf.
  • Yes Erledigt – Zu Special:Version in dem Wiki (bei Einstellung auf deutsch nach Spezial:Version) navigieren, um die erfolgreiche Installierung der Erweiterung zu überprüfen.

This extension can optionally integrate with the CheckUser extension if it is installed, but does not require it.

Verwendung

Once LoginNotify is installed, whenever a user logs into the wiki, their IP subnet is cached on the server and a cookie named loginnotify_prevlogins is stored in their browser. These tokens, optionally along with CheckUser tables, are used to see if subsequent logins are coming from a known IP/device.

If CentralAuth and CheckUser are installed, it will check the IP not only for the current wiki, but also the ten wikis where the user is most active.

Konfiguration

Parameters that can be set in the "LocalSettings.php" file:

Name Beschreibung Default
$wgLoginNotifyAttemptsKnownIP The number of failed login attempts to permit from a known IP before a notification is triggered. 10
$wgLoginNotifyAttemptsNewIP The number of failed login attempts to permit from a new IP before a notification is triggered. 3
$wgLoginNotifyExpiryKnownIP The time-to-live of the count of failed login attempts from a known IP (from the time of the first failed attempt). 604800 (7 Tagen)
$wgLoginNotifyExpiryNewIP The time-to-live of the count of failed login attempts from a new IP (from the time of the first failed attempt). 1209600 (14 Tagen)
$wgLoginNotifyCheckKnownIPs Whether to trigger a notification after failed logins from known IPs. true
$wgLoginNotifyEnableOnSuccess Whether to trigger a notification after successful logins from unknown IPs. true
$wgLoginNotifyEnableForPriv Set different default notification preferences for different user groups. For user groups that have any of the user rights listed in this array, the preferences specified in Hooks:getOverridenOptions() are on by default. ("Failed login attempts" web notifications and "Login from new computer" web notifications.) [ "editinterface", "userrights" ]
$wgLoginNotifySecretKey Use this key instead of $wgSecretKey to generate the HMACs for the cookie. null
$wgLoginNotifyCookieExpire Ablauf des Cookies. 15552000 (180 Tagen)
$wgLoginNotifyCookieDomain To allow sharing login cookies between sites on different subdomains, set this to the parent domain name. null
$wgLoginNotifyMaxCookieRecords Maximum number of users (records) to track as having successfully logged in on a particular device. 6
$wgLoginNotifyCacheLoginIPExpiry How long to cache IPs in memcache. Set to false to disable; set to 0 to cache forever. 5184000 (60 Tagen)