Extension:CheckUser
![]() Estado de la versión: estable |
|
---|---|
![]() |
|
Implementación | Página especial , Identidad de usuario , API , Gancho , Base de datos |
Descripción | La función de CheckUser (también conocida como VerificarUsuario) permite a un usuario con los respectivos permisos, comprobar qué direcciones IP son utilizadas por un determinado nombre de usuario o que nombres de usuario son utilizados por una determinada IP, sin tener que ejecutar consultas directamente a mano contra la base de datos. |
Autor(es) | Tim Starling, Aaron Schulz, Dreamy Jazz |
Última versión | 2.5 (continuous updates) |
Política de compatibilidad | Lanza instantáneas junto con MediaWiki. La rama maestra no es retrocompatible. |
PHP | 7.4.3+ |
Cambios en la base de datos | Sí |
Dominio virtual | virtual-checkuser-global |
Tablas | 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 |
Licencia | Licencia Pública General de GNU 2.0 o posterior |
Descargar | |
|
|
|
|
|
|
Descargas trimestrales | 129 (Ranked 37th) |
Wikis públicos que lo utilizan | 9,118 (Ranked 13th) |
Traduce la extensión CheckUser si está disponible en translatewiki.net | |
Incidentes | Tareas abiertas · Reportar un error |
CheckUser es una extensión que permite a un usuario (con el permiso de checkuser
) comprobar qué direcciones IP son utilizadas por un nombre de usuario y que nombres de usuario son utilizados por una IP determinada, sin tener que ejecutar consultas directamente a mano contra la base de datos.
La extensión se está ejecutando en vivo en todas las wikis de Wikimedia.
Las actualizaciones se realizan de acuerdo a las necesidades de las wikis de Wikimedia; o cuando se descubren vulnerabilidades críticas. Details on how to use the tools provided by the extension are at Help:Extension:CheckUser .
Instalación
- Descarga y mueve la carpeta
CheckUser
extraída a tu directorioextensions/
.
Los desarrolladores y contribuidores de código deberían instalar la extensión desde Git en su lugar, usando:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/CheckUser - Cuando se efectúa la instalación desde Git, hay que ejecutar Composer para que se instalen las dependencias de PHP; para este efecto, ejecute
composer install --no-dev
en el directorio de la extensión. (ver T173141 para complicaciones potenciales) - Añade el siguiente código en la parte final de tu archivo LocalSettings.php :
wfLoadExtension( 'CheckUser' );
- Ejecuta la secuencia de actualización, que creará automáticamente las tablas de la base de datos que necesita esta extensión.
- Configure as required.
- Hecho – Navega a Special:Version en el wiki para verificar que la extensión se haya instalado correctamente.
Using MediaWiki-Docker
Follow the steps in MediaWiki-Docker/Extension/CheckUser to install this extension inside a MediaWiki Docker instance.
Configuración
Esta herramienta migra los datos de cambios recientes por separado en una $changes table, y se suma a que cuando se añaden nuevas entradas.
Si $PutlPinRC era anteriormente false
, no habrá datos iniciales para buscar, pero las nuevas ediciones se completarán tan pronto como la extensión sea configurada.
However, entries added after installation of this extension will contain the IP address.
Después de ejecutar las consultas, puedes reducir $wgRCMaxAge
para mostrar los cambios recientes sin afectar checkuser.
Usa $wgCUDMaxAge
para establecer en qué medida los datos del usuario pueden ser comprobados de nuevo, en cuestión de segundos.
En versiones de MediaWiki 1.22 hacia adelante, ComprobarUsuario establece una configuración concreta $wgCheckUserCIDRLimit determina la gama más grande que puede ser comprobada en un solo control.
Su formato es el mismo en $wgBlockCIDRLimit
De lo contrario, el límite predeterminado (para todas las versiones) es /19
por $2 cheques y /16
por $4 cheques.
To allow this tool to log successful and failed login attempts as well as logouts, set $wgCheckUserLogLogins
to true
.
If you have bot accounts on your wiki, setting $wgCheckUserLogSuccessfulBotLogins
to false
will skip logging successful login attempts to bot accounts.
Versión de 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 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.
Concediendo el derecho de utilizar ComprobarUsuario
Para conceder el derecho de utilizar la herramienta ComprobarUsuario, un usuario con derechos de administrador tiene que ir a Special:UserRights e introducir el nombre de usuario en la caja, y por último seleccionar la opción "comprobador de usuario". Una vez hecho esto, la opción de ComprobarUsuario aparecerá en la página de Special:SpecialPages para aquel usuario.
To allow users to access the IP addresses of temporary accounts , they should be granted the checkuser-temporary-account right.
Para activar la gestión de derechos de usuario para los administradores, escriba lo siguiente en LocalSettings.php
:
$wgGroupPermissions['sysop']['checkuser'] = true;
$wgGroupPermissions['sysop']['checkuser-log'] = true;
$wgGroupPermissions['sysop']['investigate'] = true;
$wgGroupPermissions['sysop']['checkuser-temporary-account'] = true;
Para permitir solo la adición y eliminación del permiso de checkuser
, utilice lo siguiente en su lugar:
$wgAddGroups['sysop'][] = 'checkuser';
$wgRemoveGroups['sysop'][] = 'checkuser';
Configuración
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.
Configuration name | por defecto | Detail |
---|---|---|
$wgCUDMaxAge
|
7776000
|
Cuánto tiempo para mantener CU dato (en segundos)? (default = 3 meses) |
$wgCheckUserMaxBlocks
|
200
|
Maximum number of users that can be mass blocked simultaneously on Special:Investigate
|
$wgCheckUserForceSummary
|
false
|
Establecer esta propiedad a true si desea forzar a los usuarios de verificación para que den una razón para cada verificación que se realiza a través de Special:CheckUser. (No es muy útil, ya que los comprobadores podrían dar simplemente un resumen tales como "necesitan ser comprobados" o "me da la gana" y el software no lo sabría.) |
$wgCheckUserCIDRLimit
|
[ 'IPv4' => 16, 'IPv6' => 19 ]
|
Cortos límites CIDR que se pueden comprobar en una verificación de rango |
$wgCUPublicKey
|
''
|
Clave pública para cifrar datos privados que pueden necesitar para ser leído más tarde. Generar una clave pública con algo como:
Used with an associated private key to encrypt certain data that is not shown to CUs but stored in the cu_changes or cu_private_event table. Currently this is only the recipients of emails. Without a valid public key the data will not be stored. |
$wgCheckUserCAMultiLock
|
false
|
Esto puede ser utilizado para añadir un enlace a Especial:MultiLock de CentralAuth a la forma de bloque masivo en Especial:ComprobarUsuario. Esto requiere que la extensión CentralAuth este instalada en el wiki. To enable this, set this to an array with a central wiki's database name and an array with the name(s) of the global group(s) to add the link for. Por ejemplo:
$wgCheckUserCAMultiLock = [
'centralDB' => 'metawiki',
'groups' => [ 'steward' ]
];
|
$wgCheckUserCAtoollink
|
false
|
Desde 77360f1cf1d2. This adds a link to central wiki Special:CentralAuth to the Special:CheckUser's "Get users" results. This requires the CentralAuth extension to be installed on the wiki. To enable this, set this with a central wiki's database name. Por ejemplo:
$wgCheckUserCAtoollink = 'metawiki';
|
$wgCheckUserGBtoollink
|
false
|
Since 77360f1cf1d2. This adds a link to local or central wiki Special:GlobalBlock to the Special:CheckUser's "Get users" results. This requires the GlobalBlocking extension to be installed on the wiki. 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. Por ejemplo:
$wgCheckUserGBtoollink = [
'centralDB' => 'metawiki',
'groups' => [ 'steward', 'staff' ]
];
|
$wgCheckUserEnableSpecialInvestigate (1.35-1.43)
|
false (<=1.39)true (1.40+)
|
Since 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 . Only is used if $wgCheckUserLogLogins is true
|
$wgCheckUserMaximumRowCount
|
5000
|
The maximum number of results that can be returned by Special:CheckUser. Before MediaWiki 1.39, in the 'Get edits' and 'Get IPs' results having over 5000 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
|
Similar to $wgCheckUserMaximumRowCount, but for 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 .
Esta extensión está siendo usada en uno o más proyectos de Wikimedia. Esto significa probablemente que la extensión es estable y funciona lo suficientemente bien como para ser usada en sitios con gran cantidad de visitas. Puedes buscar el nombre de esta extensión en los archivos CommonSettings.php e InitialiseSettings.php de Wikimedia para ver dónde se instala. Encontrarás la lista completa de extensiones instaladas en un wiki en particular en la página Special:Version del wiki. |
Esta extensión está incluida en los siguientes anfitriones/granjas wiki y/o paquetes: No se trata de una lista oficial. Algunas granjas/hosts wiki y/o paquetes pueden tener disponible esta extensión aunque no estén listados aquí. Siempre compruébelo con su anfitrión o granja wiki para confirmarlo. |