Extension:CheckUser/it

Questa pagina riguarda l'estensione stessa. Per la politica "Verifica utente" di Wikimedia Foundation, vedere m:CheckUser policy. For details on how to use the extension, see Help:Extension:CheckUser .
Category:GPL licensed extensions/it
Manuale sulle Estensioni MediaWiki
CheckUser
Stato della release: stabileCategory:Stable extensions/it
Implementazione Pagina speciale Category:Special page extensions/it, Identità utente Category:User identity extensions/it, API Category:API extensions/it, Hook Category:Hook extensions/it, Database Category:Database extensions/it
Descrizione La funzione di controlla utente permette a un utente, con i rispettivi permessi, di controllare quali indirizzi IP sono utilizzati da un determinato nome utente o quali nomi utente sono stati utilizzati da un determinato indirizzo IP, senza dovere eseguire consultazioni direttamente sul database a mano.
Autore(i) Tim Starling, Aaron Schulz, Dreamy Jazz
Versione 2.5 (continuous updates)
Politica di compatibilità Snapshots releases along with MediaWiki. Master is not backward compatible.
PHP 7.4.3+
Modifiche al Database
Virtual domain virtual-checkuser-global
Tabelle cu_changes
cu_log_event
cu_private_event
cu_log
cu_useragent_clienthints
cu_useragent_clienthints_map
cu_useragent
cuci_wiki_map
cuci_temp_edit
cuci_user
Licenza GNU General Public License 2.0 or later
Scaricare Category:Extensions in Wikimedia version control/it
  • $wgCheckUserGBtoollink
  • $wgCheckUserCentralIndexGroupsToExclude
  • $wgCheckUserClientHintsSpecialPages
  • $wgCheckUserCAMultiLock
  • $wgCheckUserLogSuccessfulBotLogins
  • $wgCheckUserSpecialPagesWithoutIPRevealButtons
  • $wgCheckUserCuciUserRandomChanceDebounceCutoff
  • $wgCheckUserLogLogins
  • $wgCUPublicKey
  • $wgCheckUserCAtoollink
  • $wgCheckUserWriteToCentralIndex
  • $wgCheckUserClientHintsRestApiMaxTimeLag
  • $wgCheckUserDeveloperMode
  • $wgCheckUserEnableTempAccountsOnboardingDialog
  • $wgCheckUserCentralIndexRangesToExclude
  • $wgCUDMaxAge
  • $wgCheckUserCIDRLimit
  • $wgCheckUserMaxBlocks
  • $wgCheckUserGroupRequirements
  • $wgCheckUserDisplayClientHints
  • $wgCheckUserGlobalContributionsCentralWikiId
  • $wgCheckUserForceSummary
  • $wgCheckUserInvestigateMaximumRowCount
  • $wgCheckUserMaximumIPsToAutoblock
  • $wgCheckUserClientHintsForDisplay
  • $wgCheckUserClientHintsValuesToHide
  • $wgCheckUserClientHintsUnsetHeaderWhenPossible
  • $wgCheckUserCollapseCheckUserHelperByDefault
  • $wgCheckUserClientHintsEnabled
  • $wgCheckUserTemporaryAccountMaxAge
  • $wgCheckUserMaximumRowCount
  • $wgCheckUserClientHintsHeaders
  • checkuser
  • checkuser-log
  • checkuser-temporary-account
  • checkuser-temporary-account-auto-reveal
  • checkuser-temporary-account-log
  • checkuser-temporary-account-no-preference
  • investigate Category:Extensions which add rights/it
Quarterly downloads 122 (Ranked 39th)
Public wikis using 9,118 (Ranked 13th)
Traduci l'estensione CheckUser se è disponibile su translatewiki.net
Problemi Compiti aperti · Riportare un bug
Category:All extensions/it

Verifica utente è un'estensione che consente a un utente (con il permesso checkuser) di verificare quali indirizzi IP sono utilizzati da un dato nome utente e quali nomi utente sono utilizzati da un dato IP, senza dover eseguire query direttamente su il database a mano. L'estensione è in esecuzione su tutti i wiki Wikimedia.

Gli aggiornamenti verranno effettuati in base alle esigenze dei wiki di Wikimedia Foundation; o dove vengono scoperte vulnerabilità critiche. Details on how to use the tools provided by the extension are at Help:Extension:CheckUser.

Installazione

  • Download and move the extracted CheckUser folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/CheckUser
  • Solo durante l'installazione da git eseguire Composer per installare le dipendenze PHP, immettendo composer install --no-dev nella directory dell'estensione. (Vedere T173141 per potenziali complicazioni.)Category:Extensions requiring Composer with git/it
  • Aggiungi il seguente codice al tuo $LocalSettings (preferibilmente alla fine):
    wfLoadExtension( 'CheckUser' );
    
  • Esegui lo script di aggiornamento, che creerà automaticamente nel database le tavole necessarie a questa estensione.
  • Configurare come richiesto.
  • Yes Done – Naviga in Special:Version nella tua wiki per verificare che l'estensione sia stata installata correttamente.

Utilizzo di MediaWiki-Docker

Segui i passaggi in MediaWiki-Docker/Extension/CheckUser per installare questa estensione all'interno di un'istanza Docker MediaWiki.

Configurazione

Questo strumento copia i dati delle modifiche recenti in tabelle separate e li aggiunge quando vengono aggiunte nuove voci. Se $wgPutIPinRC è impostato su false, i dati copiati non conterranno l'indirizzo IP associato. Tuttavia, le voci aggiunte dopo l'installazione di questa estensione conterranno l'indirizzo IP.

Dopo l'installazione di questa estensione, puoi ridurre $wgRCMaxAge per ridurre le modifiche recenti senza influire sul checkuser. Utilizza $wgCUDMaxAge per impostare quanto indietro possono andare indietro i dati del checkuser, in secondi.

L'impostazione specifica di CheckUser $wgCheckUserCIDRLimit determina l'intervallo più ampio che può essere controllato in un singolo controllo. Il suo formato è lo stesso di $wgBlockCIDRLimit. Il limite predefinito è /19 per i controlli $2 e /16 per i controlli $4.

Per consentire a questo strumento di registrare i tentativi di accesso riusciti e non riusciti come le disconnessioni, impostare $wgCheckUserLogLogins a true. Se hai account bot sulla tua wiki, setting $wgCheckUserLogSuccessfulBotLogins a false salterà la registrazione dei tentativi di accesso riusciti agli account bot.

Versione MediaWiki:
1.43

If the extension is installed on a multi-wiki install, then you should set $wgVirtualDomainsMapping for the virtual-checkuser-global to point to a central database table. Setting this will ensure that the central index tables are actually on a central DB, and therefore the GlobalBlocking global autoblocks and GUC work. After doing this, you will need to run update.php to create the tables on the central wiki.

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 the addSite maintenance script. You'll need to ensure that the optional parameters pagepath and filepath 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 the cuci_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.

Concessione del diritto di utilizzare CheckUser

Per concedere il diritto di utilizzare Special:CheckUser, Special:Investigate e Special:CheckUserLog, un utente con gestione dei diritti utente deve andare su Special:UserRights e inserire il nome dell'utente nella casella, quindi selezionare l'opzione "checkuser". Una volta fatto ciò, le pagine speciali sopra menzionate verranno visualizzate nella pagina Special:SpecialPages per quell'utente.

Per consentire agli utenti di accedere agli indirizzi IP degli account temporanei, dovrebbe essere concesso loro il diritto di checkuser-temporary-account.

Per concedere agli amministratori tutti i diritti forniti da questa estensione, inserisci quanto segue in LocalSettings.php:

$wgGroupPermissions['sysop']['checkuser'] = true;
$wgGroupPermissions['sysop']['checkuser-log'] = true;
$wgGroupPermissions['sysop']['investigate'] = true;
$wgGroupPermissions['sysop']['checkuser-temporary-account'] = true;

Per consentire solo l'aggiunta e la rimozione del permesso checkuser, utilizzare invece quanto segue:

$wgAddGroups['sysop'][] = 'checkuser';
$wgRemoveGroups['sysop'][] = 'checkuser';

Configurazione

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.

Configura le impostazione in extension.json
Configuration name default Detail
$wgCUDMaxAge 7776000 Per quanto tempo conservare i dati CU (in secondi)? (predefinito = 3 mesi)
$wgCheckUserMaxBlocks 200 Maximum number of users that can be mass blocked simultaneously on Special:Investigate
$wgCheckUserForceSummary false Impostalo su true se vuoi forzare i checkuser a fornire un motivo per ogni controllo effettuato tramite Special:CheckUser. (Non molto utile, dato che i checkusers potrebbero semplicemente fornire un riepilogo come "devono essere controllati" o "mi va" e il software non lo saprebbe.)
$wgCheckUserCIDRLimit [ 'IPv4' => 16, 'IPv6' => 19 ] Il valore CIDR più piccolo che può essere utilizzato in qualsiasi controllo dell'intervallo individuale
$wgCUPublicKey '' Chiave pubblica per crittografare i dati privati che potrebbero dover essere letti in seguito. Genera una chiave pubblica con qualcosa del tipo:

openssl genrsa -out cu.key 2048; openssl rsa -in cu.key -pubout > cu.pub e incolla qui il contenuto di cu.pub

Utilizzato con una chiave privata associata per crittografare determinati dati che non vengono mostrati ai CU ma archiviati nella tabella cu_changes o cu_private_event. Attualmente, questi sono solo i destinatari delle e-mail. Senza una chiave pubblica valida, i dati non verranno archiviati.

$wgCheckUserCAMultiLock false Questo può essere utilizzato per aggiungere un collegamento a Special:MultiLock di CentralAuth al modulo di blocco di massa di Special:CheckUser Ciò richiede che l'estensione CentralAuth sia installata sulla wiki. Per abilitarlo, impostalo su un array con il nome del database di una wiki centrale e un array con il(i) nome(i) del(i) gruppo(i) globale(i) per cui aggiungere il collegamento. Per esempio:
$wgCheckUserCAMultiLock = [
    'centralDB' => 'metawiki',
    'groups' => [ 'steward' ]
];
$wgCheckUserCAtoollink false Dato che 77360f1cf1d2. Questo aggiunge un collegamento dalla pagina Special:CentralAuth della wiki centrale ai risultati "Ottieni utenti" di Special:CheckUser. Ciò richiede che l'estensione CentralAuth sia installata sulla wiki. Per abilitare questo, impostalo con il nome del database di una wiki centrale. Per esempio:
$wgCheckUserCAtoollink = 'metawiki';
$wgCheckUserGBtoollink false Dato che 77360f1cf1d2. Ciò aggiunge un collegamento dalla pagina Special:GlobalBlock della wiki locale o centrale ai risultati "Ottieni utenti" di Special:CheckUser. Ciò richiede che l'estensione GlobalBlocking sia installata sulla wiki. Per consentire questo, se è configurato un $wgConf impostalo su un array con il nome del database di un wiki centrale e su un array con il(i) nome (i) del gruppo (i) locale (o globale se hai installato CentralAuth) per aggiungere il link. Per esempio:
$wgCheckUserGBtoollink = [
	'centralDB' => 'metawiki',
	'groups' => [ 'steward', 'staff' ]
];
$wgCheckUserEnableSpecialInvestigate (1.35-1.43) false (<=1.39)
true (1.40+)
Dato che 57dcfe46d2e4. Ciò abilita Special:Investigate, una versione aggiornata di Special:CheckUser che consente di verificare più account utente e indirizzi IP all'interno di un'indagine.
$wgCheckUserLogLogins false Indica se CheckUser deve registrare i tentativi di login e di logout (sia riusciti che no).
$wgCheckUserLogSuccessfulBotLogins true Indica se il CheckUser deve memorizzare i tentativi di accesso con successo degli account con il bot del gruppo di utenti se $wgCheckUserLogLogins è impostato a true. Si usa solo se $wgCheckUserLogLogins è true
$wgCheckUserMaximumRowCount 5000 Il numero massimo di risultati che possono essere restituiti da Special:CheckUser Prima della MediaWiki 1.39, Nelle pagine "Ottieni modifiche" e "Ottieni IP" i risultati con risultati superiori a 5 000 avrebbero restituito i risultati in un formato diverso. Da MediaWiki 1.39 questo è il numero massimo di risultati da mostrare per pagina e altri possono essere generati utilizzando i collegamenti di paginazione
$wgCheckUserInvestigateMaximumRowCount 25000 Simile a $wgCheckUserMaximumRowCount, ma per indagare
$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 Utilizzato per controllare se i suggerimenti del client devono essere raccolti e visualizzati nei risultati da 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": ""} L'elenco dei tipi di suggerimento del client che verranno richiesti. Le chiavi rappresentano i valori dei suggerimenti del client richiesti utilizzando l'intestazione Accept-CH. I valori rappresentano il nome equivalente quando vengono richiesti dall'API dei suggerimenti client lato client JS.
$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 Il numero di secondi per i quali la risposta API dell'account temporaneo è recente.
$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:

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.

Category:Extensions used on Wikimedia/it#CheckUser/it Category:Log extensions/it Category:API extensions/it
Category:APIGetAllowedParams extensions/it Category:API extensions/it Category:AbuseFilterCanViewProtectedVariables extensions/it Category:AbuseFilterCustomProtectedVariables extensions/it Category:AbuseFilterLogProtectedVariableValueAccess extensions/it Category:All extensions/it Category:ApiQuery::moduleManager extensions/it Category:AuthManagerLoginAuthenticateAudit extensions/it Category:BeforePageDisplay extensions/it Category:ChangesListInsertLogEntry extensions/it Category:ContributionsToolLinks extensions/it Category:Database extensions/it Category:EmailUser extensions/it Category:Extensions in Wikimedia version control/it Category:Extensions included in Canasta/it Category:Extensions included in Fandom/it Category:Extensions included in Miraheze/it Category:Extensions included in ShoutWiki/it Category:Extensions included in Telepedia/it Category:Extensions included in WikiForge/it Category:Extensions requiring Composer with git/it Category:Extensions used on Wikimedia/it Category:Extensions which add rights/it Category:GPL licensed extensions/it Category:GetPreferences extensions/it Category:GlobalBlockingGetRetroactiveAutoblockIPs extensions/it Category:GlobalPreferencesSetGlobalPreferences extensions/it Category:Hook extensions/it Category:IPInfoHandlerRun extensions/it Category:LoadExtensionSchemaUpdates extensions/it Category:LocalUserCreated extensions/it Category:LogEventsListLineEnding extensions/it Category:Log extensions/it Category:PerformRetroactiveAutoblock extensions/it Category:RecentChange save extensions/it Category:RenameUserSQL extensions/it Category:ResourceLoaderRegisterModules extensions/it Category:SaveUserOptions extensions/it Category:SidebarBeforeOutput extensions/it Category:SpecialContributionsBeforeMainOutput extensions/it Category:SpecialPageBeforeExecute extensions/it Category:SpecialPage initList extensions/it Category:SpecialUserRightsChangeableGroups extensions/it Category:Special page extensions/it Category:Stable extensions/it Category:User::mailPasswordInternal extensions/it Category:UserGetDefaultOptions extensions/it Category:UserLinkRendererUserLinkPostRender extensions/it Category:UserLogoutComplete extensions/it Category:UserMergeAccountFields extensions/it Category:UserToolLinksEdit extensions/it Category:User identity extensions/it