Extension:LoginNotify/pl
LoginNotify Status wydania: stabilne |
|
---|---|
Realizacja | Aktywność użytkownika |
Opis | Notify users of suspicious logins |
Autor(zy) | Brian Wolff (Bawolffdyskusja) |
Ostatnia wersja | 0.1 |
MediaWiki | >= 1.43 |
Zmiany w bazie danych | Tak |
Tabele | loginnotify_seen_net |
Licencja | Licencja MIT |
Pobieranie | |
|
|
Quarterly downloads | 20 (Ranked 116th) |
Public wikis using | 904 (Ranked 277th) |
Przetłumacz rozszerzenie LoginNotify jeżeli jest dostępne na translatewiki.net | |
Problemy | Otwarte zadania · Zgłoś błąd |
The LoginNotify extension notifies you when someone logs into your account. It can be configured to give warnings after a certain number of failed login attempts (The number is configurable, and can be different between unknown IPs/devices and known IPs/devices). It can also give Echo notices (which can also be emailed) for successful logins from IPs you don't normally use. It can optionally integrate into the CheckUser extension in order to determine if the login is from an IP address you don't normally use. It can also set a cookie to try and determine if the login is from a device you normally use.
Instalacja
This extension requires the Echo extension to be installed.
- Pobierz i umieść plik(i) w katalogu o nazwie
LoginNotify
w folderzeextensions/
.
Developers and code contributors should install the extension from Git instead, using:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/LoginNotify - Dodaj poniższy kod na dole twojego pliku LocalSettings.php :
wfLoadExtension( 'LoginNotify' );
- Configure as required.
- Zrobione – Przejdź do Special:Version na twojej wiki, aby sprawdzić czy rozszerzenie zostało pomyślnie zainstalowane.
This extension can optionally integrate with the CheckUser extension if it is installed, but does not require it.
Użycie
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.
Konfiguracja
Parameters that can be set in the LocalSettings.php
file:
Name | Description | 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 dni)
|
$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 dni)
|
$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
|
Expiration of the cookie. | 15552000 (180 dni)
|
$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 dni)
|
To rozszerzenie jest wykorzystywane przez jeden lub więcej projektów Wikimedia. Oznacza to prawdopodobnie, że to rozszerzenie jest stabilne i działa wystarczająco dobrze, aby wykorzystywać je na stronach o dużym natężeniu ruchu. Odnajdź nazwę tego rozszerzenia w plikach konfiguracyjnych Wikimedia CommonSettings.php oraz InitialiseSettings.php, aby zobaczyć gdzie są zainstalowane. Pełną listę rozszerzeń zainstalowanych na określonej wiki można znaleźć na stronie Special:Version na danej wiki. |
To rozszerzenie jest dołączone do następujących farm/hostów wiki lub pakietów: To nie jest pełna lista. Niektóre farmy/hosty wiki lub pakiety mogą zawierać to rozszerzenie nawet jeśli nie są one tutaj wymienione. Zawsze sprawdzaj swoje farmy/hosty wiki, aby to potwierdzić. |
- Extensions bundled with MediaWiki 1.40/pl
- Stable extensions/pl
- User activity extensions/pl
- MIT licensed extensions/pl
- Extensions in Wikimedia version control/pl
- AuthManagerLoginAuthenticateAudit extensions/pl
- BeforeCreateEchoEvent extensions/pl
- EchoGetBundleRules extensions/pl
- LoadExtensionSchemaUpdates extensions/pl
- LocalUserCreated extensions/pl
- RecentChange save extensions/pl
- All extensions/pl
- Extensions used on Wikimedia/pl
- Extensions included in BlueSpice/pl
- Extensions included in Miraheze/pl
- Extensions included in WikiForge/pl