Extension:CheckUser/de
CheckUser ist eine Erweiterung, mit der ein Benutzer (mit der Berechtigung checkuser
) überprüfen kann, welche IPs von einem bestimmten Benutzernamen verwendet werden und welche Benutzernamen von einer bestimmten IP verwendet werden, ohne dass Abfragen direkt von der Datenbank ausgeführt werden müssen Hand.
Die Erweiterung wird im Echtbetrieb aller Wikimedia Wikis verwendet.
Aktualisierungen werden je nach Bedarf der Wikimedia Foundation-Wikis erstellt oder wenn kritische Schwachstellen entdeckt werden. Details zum Einsatz der in der Erweiterung bereitgestellten Tools finden sich bei Help:Extension:CheckUser .
Installation
- Die Erweiterung herunterladen und die Datei(en) in ein Verzeichnis namens
CheckUser
im Ordnerextensions/
ablegen.
Entwickler und Code-Beitragende sollten stattdessen die Erweiterung von Git installieren, mit:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/CheckUser - Wird von git aus installiert, ist Composer auszuführen, um PHP-Abhängigkeiten zu installieren, indem
composer install --no-dev
im Erweiterungsverzeichnis ausgeführt wird. (Siehe T173141 für mögliche Komplikationen.)Category:Extensions requiring Composer with git/de - Folgenden Code am Ende deiner LocalSettings.php -Datei einfügen:
wfLoadExtension( 'CheckUser' );
- Führe das Aktualisierungsskript aus, welches automatisch die notwendigen Datenbanktabellen erstellt, die diese Erweiterung braucht.
- Nach Bedarf konfigurieren.
Erledigt – Navigiere zu Special:Version in deinem Wiki, um zu überprüfen, ob die Erweiterung erfolgreich installiert wurde.
MediaWiki-Docker verwenden
Folge den Schritten in MediaWiki-Docker/Extension/CheckUser , um diese Erweiterung in einer MediaWiki-Docker-Instanz zu installieren.
Konfiguration
Dieses Tool kopiert die Daten der letzten Änderungen in separate Tabellen und fügt diese hinzu, wenn neue Einträge hinzugefügt werden.
Wenn $wgPutIPinRC
auf false
gesetzt ist, enthalten die kopierten Daten nicht die zugehörige IP-Adresse.
Einträge, die nach der Installation dieser Erweiterung hinzugefügt werden, enthalten jedoch die IP-Adresse.
Nach der Installation dieser Erweiterung kannst du $wgRCMaxAge
reduzieren, um die letzten Änderungen zu verkürzen, ohne dass checkuser davon betroffen ist.
Verwende $wgCUDMaxAge
, um festzulegen, wie weit die Benutzerdaten in Sekunden zurückgehen können.
Die CheckUser-spezifische Einstellung $wgCheckUserCIDRLimit bestimmt den größten Bereich, der in einer einzelnen Prüfung geprüft werden kann.
Sein Format ist das gleiche wie $wgBlockCIDRLimit .
Das Standardlimit ist /19
für IPv6 Checks und /16
für $IPv4 Checks.
Damit dieses Tool erfolgreiche und fehlgeschlagene Anmeldeversuche sowie Abmeldungen protokollieren kann, legst du $wgCheckUserLogLogins
auf true
fest.
Wenn du über Bot-Accounts in deinem Wiki verfügst, kannst du durch Festlegen von $wgCheckUserLogSuccessfulBotLogins
auf false
die Protokollierung erfolgreicher Anmeldeversuche für Bot-Accounts überspringen.
MediaWiki Version: | ≥ 1.43 |
Wenn die Erweiterung auf einer Multi-Wiki-Installation installiert ist, sollten Sie $wgVirtualDomainsMapping für die virtual-checkuser-global
einstellen, um auf eine zentrale Datenbanktabelle zu verweisen.
Wenn man dies setzt, wird sichergestellt, dass die zentralen Indextabellen tatsächlich auf einer zentralen Datenbank liegen und daher die globalen Autoblocks und GUC von GlobalBlocking funktionieren.
Nach diesem Schritt müssen Sie update.php
ausführen, um die Tabellen im zentralen Wiki zu erstellen.
MediaWiki Version: | ≥ 1.45 |
After 1.45, the CheckUser API is disabled by default.
If you want to enable this you should set $wgCheckUserDisableCheckUserAPI
to false
.
Troubleshooting Special:GlobalContributions functionality
If Special:GlobalContributions is not returning revisions as expected (e.g. you have revisions on another wiki that you can view on that wiki), a misconfiguration may be causing an internal failure that isn't user-facing (as it cannot be user resolved). Check that:
- Your user has a central account and that their accounts on the affected wiki are linked. This can be checked at Special:MergeAccount.
- The affected wiki is known to the wiki farm. This is defined in the
sites
table and wikis can be added to this table via theaddSite
maintenance script. You'll need to ensure that the optional parameterspagepath
andfilepath
are filled out (eg.php ./maintenance/run.php addSite $wikiName wiki --pagepath https://hostname/wiki/\$1 --filepath https://hostname/w/\$1
), as Special:GlobalContributions uses these to generate API queries and links. - The central database is set with
virtual-checkuser-global
(eg.$wgVirtualDomainsMapping['virtual-checkuser-global'] = [ 'db' => $wiki ];
) and that thecuci_temp_edit
table is recording revisions from the affected wiki. - If necessary, cross-domain cookies should be enabled as the
centralauth
token must work across both wikis.
Rechte zum Benutzen von CheckUser erteilen
Um das Recht zu gewähren, Special:CheckUser, Special:Investigate und Special:CheckUserLog zu verwenden, muss ein Benutzer mit Nutzerrechteverwaltung zu Special:UserRights gehen und den Benutzernamen im Feld eingeben und dann die Option "Checkuser" auswählen. Sobald dies geschehen ist, werden die oben genannten Sonderseiten auf der Seite Special:SpecialPages für diesen Benutzer angezeigt.
Um Nutzern den Zugriff auf die IP-Adressen von temporären Konten zu ermöglichen, sollten sie das Recht checkuser-temporary-account erhalten.
Um Administratoren alle Rechte zu geben, die diese Erweiterung bietet, gibst du Folgendes in LocalSettings.php
ein:
$wgGroupPermissions['sysop']['checkuser'] = true;
$wgGroupPermissions['sysop']['checkuser-log'] = true;
$wgGroupPermissions['sysop']['checkuser-temporary-account-log'] = true;
$wgGroupPermissions['sysop']['checkuser-temporary-account-no-preference'] = true;
Wenn du nur das Hinzufügen und Entfernen der Berechtigung checkuser
erlauben willst, verwende stattdessen Folgendes:
$wgAddGroups['sysop'][] = 'checkuser';
$wgRemoveGroups['sysop'][] = 'checkuser';
Konfiguration
A selected number of the configuration values are shown below.
These configuration values are useful for administrators of wikis to modify.
Configuration values which are usually left as their default value are not specified here to keep the list concise, but details for these configuration values are present in the extension.json
file.
Konfigurationsname | Voreinstellung | Detail |
---|---|---|
$wgCUDMaxAge |
7776000 |
Wie lange sollen die CU-Daten aufbewahrt werden (in Sekunden)? (Standard = 90 Tage) |
$wgCheckUserMaxBlocks |
200 |
Höchstmengen von Benutzern, die gleichzeitig auf Special:Investigate massenhaft blockiert werden können |
$wgCheckUserForceSummary |
false |
Set this to true if you want to force checkusers into giving a reason for each check they do through Special:CheckUser. (Not very useful, given that checkusers could simply give a summary such as "they need to be checked" or "I feel like it" and the software would not know.) |
$wgCheckUserCIDRLimit |
[ 'IPv4' => 16, 'IPv6' => 19 ] |
Kleinster CIDR-Wert, der in jeder einzelnen Bereichsprüfung verwendet werden kann |
$wgCUPublicKey |
'' |
Öffentlicher Schlüssel zum Verschlüsseln privater Daten, die später möglicherweise gelesen werden müssen. Erstelle einen öffentlichen Schlüssel mit etwas wie:
Wird zusammen mit einem privaten Schlüssel verwendet, um bestimmte Daten zu verschlüsseln, die den CUs nicht angezeigt werden, jedoch in der Tabelle cu_changes oder cu_private_event geladen sind. Derzeit sind das nur die Empfänger von E-Mails. Ohne einen gültigen öffentlichen Schlüssel werden die Daten nicht gespeichert. |
$wgCheckUserCAMultiLock |
false |
This can be used to add a link to Special:MultiLock by CentralAuth to the Special:CheckUser's mass block form. Dazu muss die Erweiterung CentralAuth auf dem Wiki installiert sein. Um dies zu aktivieren, setze dies auf ein Array mit dem Namen der zentralen Wiki-Datenbank und ein Array mit den Namen der globalen Gruppe(n), für die der Link hinzugefügt werden soll. Zum Beispiel:
$wgCheckUserCAMultiLock = [
'centralDB' => 'metawiki',
'groups' => [ 'steward' ]
];
|
$wgCheckUserCAtoollink |
false |
Seit 77360f1cf1d2. This adds a link to central wiki Special:CentralAuth to the Special:CheckUser's "Get users" results. Dazu muss die Erweiterung CentralAuth auf dem Wiki installiert sein. To enable this, set this with a central wiki's database name. Zum Beispiel:
$wgCheckUserCAtoollink = 'metawiki';
|
$wgCheckUserGBtoollink |
false |
Seit 77360f1cf1d2. This adds a link to local or central wiki Special:GlobalBlock to the Special:CheckUser's "Get users" results. Dazu muss die Erweiterung GlobalBlocking auf dem Wiki installiert sein. To enable this, if a $wgConf is configured, set this to an array with a central wiki's database name and an array with the name(s) of the local (or global if you have CentralAuth installed) group(s) to add the link for. Zum Beispiel:
$wgCheckUserGBtoollink = [
'centralDB' => 'metawiki',
'groups' => [ 'steward', 'staff' ]
];
|
$wgCheckUserEnableSpecialInvestigate (1.35-1.43) |
false (<=1.39)true (1.40+) |
Seit 57dcfe46d2e4. This enables Special:Investigate, an updated version of Special:CheckUser that allows checking for multiple user accounts and IP addresses within one investigation. |
$wgCheckUserLogLogins |
false |
Whether CheckUser should log login and logout attempts (both successful and not). |
$wgCheckUserLogSuccessfulBotLogins |
true |
Whether CheckUser should store successful login attempts to accounts with the bot user group if $wgCheckUserLogLogins is set to true . Nur genutzt, wenn $wgCheckUserLogLogins true ist |
$wgCheckUserMaximumRowCount |
5000 |
Die maximale Anzahl der Ergebnisse, die von Special:CheckUser zurückgegeben werden können. Before MediaWiki 1.39, in the 'Get edits' and 'Get IPs' results having over 5.000 results would return the results in a different format. From MediaWiki 1.39 this is the maximum number of results to show by page and more can be generated using the paging links |
$wgCheckUserInvestigateMaximumRowCount |
25000 |
Ähnlich wie $wgCheckUserMaximumRowCount, aber für Investigate |
$wgCheckUserCollapseCheckUserHelperByDefault (1.41+) |
2500 |
Controls when the "CheckUser helper" summary table on Special:CheckUser . Specify true to always collapse by default, false to never collapse by default, and a number to collapse when more than that number of results are displayed on the page. |
$wgCheckUserMaximumIPsToAutoblock (1.43+) |
1 |
The maximum number of IP addresses to retroactively autoblock when a block is created with autoblocking enabled. |
$wgCheckUserClientHintsEnabled (1.41+) |
true |
Used to control whether client hints should be collected and displayed in results by CheckUser. |
$wgCheckUserClientHintsSpecialPages (1.41+) |
{ "CreateAccount": "header", "Emailuser": "js", "PasswordReset": "js", "Userlogin": [ "js", "header" ], "Userlogout": "header" } |
The list of special pages where CheckUser will request client hints if $wgCheckUserClientHintsEnabled is true . |
$wgCheckUserClientHintsHeaders (1.41+) |
{ "Sec-CH-UA": "brands", "Sec-CH-UA-Arch": "architecture", "Sec-CH-UA-Bitness": "bitness", "Sec-CH-UA-Form-Factor": "", "Sec-CH-UA-Full-Version-List": "fullVersionList", "Sec-CH-UA-Mobile": "mobile", "Sec-CH-UA-Model": "model", "Sec-CH-UA-Platform": "platform", "Sec-CH-UA-Platform-Version": "platformVersion", "Sec-CH-UA-WoW64": "" } |
The list of client hint types that will be requested. Keys represent the client hint values requested using the Accept-CH header. Values represent the equivalent name when requesting them from the JS client side client hints API. |
$wgCheckUserClientHintsForDisplay (1.41+) |
[ "model", "fullVersionList", "platformVersion", "platform", "brands", "formFactor", "architecture", "mobile", "bitness", "woW64" ] |
The list of Client Hints data to display in CheckUser results. The order of the array is used to determine what order to display the data. |
$wgCheckUserClientHintsValuesToHide (1.41+) |
{ "architecture": [ "x86" ], "bitness": [ "64" ], "woW64": [ false ] } |
Specifies Client Hint data values which should be hidden in the CheckUser results. This is done to hide commonly seen Client Hint data values in the cases where it's not useful to see this information unless it's a rare value. |
$wgCheckUserTemporaryAccountMaxAge (1.40+) |
86400 |
The number of seconds for which the temporary account API response is fresh. |
$wgCheckUserSpecialPagesWithoutIPRevealButtons (1.40+) |
[ "Investigate", "InvestigateBlock", "CheckUser", "CheckUserLog", "Activeusers", "Listusers", "BlockList" ] |
A list of special page names where "Show IP" buttons are disabled, because they are not useful. The special page names are case sensitive and do not always match their appearance in the URL. For example Special:ListUsers is called Listusers in this array. |
$wgCheckUserClientHintsUnsetHeaderWhenPossible (1.41+) |
true |
If true , the server will send an empty Accept-CH header when the user is viewing a page which does not need client hints data. |
$wgCheckUserGlobalContributionsCentralWikiId (1.44+) |
null |
A string representing the name of the wiki to designate as the "central" wiki for Special:GlobalContributions. Setting this will redirect all other wiki's Special:GlobalContributions page to the central wiki's instead. |
$wgCheckUserWriteToCentralIndex (1.43+) |
true |
Used to prevent adding entries to the CheckUser central index tables on the wiki. Use this when the wiki is not part of a larger wiki farm unified account system. |
$wgCheckUserCentralIndexGroupsToExclude (1.43+) |
[ "bot" ] |
Users in any of the groups specified in this configuration value will not have their actions stored in the central index tables. Used to reduce the rate of writes to the central index tables for high activity users where there is no need to run CheckUser checks on these users. |
Using the extension
Detail about how to use the extension can be viewed at the extension help page . This information is not included here to keep this page manageable in size, and to focus this page on installation and administration of the extension.
There are several special pages and a few APIs provided by the extension. The special pages are:
- Special:CheckUser - Used to look up CheckUser data about accounts and anonymous users. Described at Help:Extension:CheckUser#Special:CheckUser usage .
- Special:Investigate - Alternative tool used to look up CheckUser data about accounts and anonymous users, with information displayed using a single-page format. Described at Help:Special Investigate .
- Special:CheckUserLog - Used to list the checks performed using either Special:CheckUser, Special:Investigate, or the CheckUser API. Described at Help:Extension:CheckUser#Special:Investigate usage .
- Special:IPContributions - Used to lookup edits performed by temporary accounts on a given IP address or range. Described at Help:Extension:CheckUser#Special:IPContributions usage .
- Special:GlobalContributions - Used to lookup edits performed by accounts, or temporary accounts on a given IP address or range. Described at Help:Extension:CheckUser#Special:GlobalContributions usage .
The extension also provides the ability to reveal the IP address used by a temporary account. Described at Help:Extension:CheckUser#Showing IPs for temporary accounts .
![]() | Diese Erweiterung wird in einem oder mehreren Wikis von Wikimedia verwendet. Das bedeutet mit hoher Wahrscheinlichkeit, dass die Erweiterung stabil ist und gut genug funktioniert, um auf solch häufig besuchten Webseiten benutzt zu werden. Suche nach dem Erweiterungs-Namen in den Wikimedia CommonSettings.php und den InitialiseSettings.php-Konfigurations-Dateien, um nachzusehen, wo es installiert ist. Eine vollständige Liste der installierten Erweiterungen in einem bestimmten Wiki wird auf Special:Version im Wiki generiert und angezeigt. |
![]() | Diese Erweiterung ist in den folgenden Softwarepaketen enthalten und/oder wird von den folgenden Wiki-Farmen, bzw. Wiki-Hostern verwendet:
|