Extension:CheckUser/pt-br

Esta página é sobre a própria extensão. Para a política de Wikimedia Foundation CheckUser, veja m:Política de CheckUser. For details on how to use the extension, see Help:Extension:CheckUser .
Category:GPL licensed extensions/pt-br
Manual de extensões do MediaWiki
CheckUser
Estado da versão: estávelCategory:Stable extensions/pt-br
Implementação Página especial Category:Special page extensions/pt-br, Identidade de usuário Category:User identity extensions/pt-br, API Category:API extensions/pt-br, Hook Category:Hook extensions/pt-br, Banco de dados Category:Database extensions/pt-br
Descrição CheckUser permite que um usuário com permissões para verificar quais IPs são utilizados por um determinado nome de usuário e que nomes de usuários são utilizados por um determinado IP, sem ter que executar consultas diretamente no banco de dados à mão.
Autor(es) Tim Starling, Aaron Schulz, Dreamy Jazz
Última versão 2.5 (continuous updates)
Política de
compatibilidade
Snapshots releases along with MediaWiki. Master is not backward compatible.
PHP 7.4.3+
Modifica o banco
de dados
Sim
Virtual domain virtual-checkuser-global
Tabelas 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
Licença GNU GPL (Licença Pública Geral) 2.0 ou superior
Download Category:Extensions in Wikimedia version control/pt-br
  • $wgCheckUserGBtoollink
  • $wgCheckUserCAMultiLock
  • $wgCheckUserClientHintsEnabled
  • $wgCheckUserLogLogins
  • $wgCheckUserDeveloperMode
  • $wgCheckUserEnableTempAccountsOnboardingDialog
  • $wgCUDMaxAge
  • $wgCheckUserMaxBlocks
  • $wgCheckUserGroupRequirements
  • $wgCheckUserDisplayClientHints
  • $wgCheckUserClientHintsValuesToHide
  • $wgCheckUserAlwaysSetClientHintHeaders
  • $wgCheckUserClientHintsSpecialPages
  • $wgCheckUserLogSuccessfulBotLogins
  • $wgCheckUserClientHintsUnsetHeaderWhenPossible
  • $wgCUPublicKey
  • $wgCheckUserCAtoollink
  • $wgCheckUserClientHintsRestApiMaxTimeLag
  • $wgCheckUserSpecialPagesWithoutIPRevealButtons
  • $wgCheckUserCentralIndexRangesToExclude
  • $wgCheckUserCIDRLimit
  • $wgCheckUserMaximumIPsToAutoblock
  • $wgCheckUserGlobalContributionsCentralWikiId
  • $wgCheckUserForceSummary
  • $wgCheckUserInvestigateMaximumRowCount
  • $wgCheckUserDisableCheckUserAPI
  • $wgCheckUserCuciUserRandomChanceDebounceCutoff
  • $wgCheckUserWriteToCentralIndex
  • $wgCheckUserCentralIndexGroupsToExclude
  • $wgCheckUserClientHintsForDisplay
  • $wgCheckUserCollapseCheckUserHelperByDefault
  • $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/pt-br
Quarterly downloads 97 (Ranked 29th)
Public wikis using 9,118 (Ranked 13th)
Para traduzir a extensão CheckUser, verifique sua disponibilidade no translatewiki.net
Problemas Tarefas em aberto · Relatar um bug
Category:All extensions/pt-br

CheckUser é uma extensão que permite que um usuário (com a permissão de checkuser) verifique quais IPs são utilizados por um determinado usuário e que usuários são usados ​​por um determinado IP, sem ter que executar consultas diretamente no banco de dados. Esta extensão está presente em todas as wikis Wikimedia.

As atualizações serão feitas de acordo com as necessidades das wikis Wikimedia, ou quando vulnerabilidades críticas são descobertas. Details on how to use the tools provided by the extension are at Help:Extension:CheckUser.

Instalação

  • Baixe e mova a pasta extraída CheckUser ao seu diretório extensions/.
    Desenvolvedores e colaboradores de código, por outro lado, deverão instalar a extensão a partir do Git, usando:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/CheckUser
  • Se estiver instalando a partir do Git, execute o Composer para instalar as dependências do PHP através do comando composer install --no-dev no diretório da extensão. (Veja T173141 para possíveis complicações.)Category:Extensions requiring Composer with git/pt-br
  • Adicione o seguinte código ao final do seu arquivo LocalSettings.php :
    wfLoadExtension( 'CheckUser' );
    
  • Execute o script de atualização que criará automaticamente as tabelas necessárias a essa extensão no banco de dados.
  • Configure as required.
  • Yes Concluído – Navegue à página Special:Version em sua wiki para verificar se a instalação da extensão foi bem sucedida.

Using MediaWiki-Docker

Follow the steps in MediaWiki-Docker/Extension/CheckUser to install this extension inside a MediaWiki Docker instance.

Configuração

Esta ferramenta migra dados das mudanças recentes para uma tabela $changes separada e adiciona-se a isso quando novas entradas são adicionadas. Se $wgPutIPinRC foi previamente definido como false, não haverá dados iniciais para pesquisa, mas as novas edições serão preenchidas assim que a extensão for configurada. However, entries added after installation of this extension will contain the IP address.

Depois de executar as consultas, você pode reduzir $wgRCMaxAge para tornar as mudanças recentes mais curtas, sem afetar o checkuser. Use $wgCUDMaxAge para definir uma distância com os dados disponíveis para o checkuser podem ser exibidos, em segundos.

Nas versões do MediaWiki 1.22 e posteriores, a configuração específica do CheckUser $wgCheckUserCIDRLimit determina o maior intervalo que pode ser verificado em uma única verificação. Seu formato é o mesmo que $wgBlockCIDRLimit. Caso contrário, o limite padrão (para todas as versões) é /19 para seleções $2 e /16 para seleções $4.

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.

Versão 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.

Versão MediaWiki:
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 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.

Concedendo o direito de usar CheckUser

Para conceder o direito de usar a função CheckUser, um usuário capaz de gerenciar privilégios de usuário deve ir para Special:UserRights e digitar o nome do usuário na caixa e, em seguida, selecionar a opção "Check User". Uma vez feito isso, a opção Verificar Usuário aparecerá na página Special:SpecialPages para esse usuário.

To allow users to access the IP addresses of temporary accounts, they should be granted the checkuser-temporary-account right.

Para ativar o gerenciamento de direitos do usuário para administradores, coloque o seguinte em LocalSettings.php:

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

Para permitir apenas a adição e remoção da permissão de checkuser ao usuário, use o seguinte em vez disso:

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

Configuração

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.

Opções de configuração em extension.json
Configuration name Padrão Detail
$wgCUDMaxAge 7776000 Quanto tempo para manter os dados CU (em segundos)? (padrão = 3 meses)
$wgCheckUserMaxBlocks 200 Maximum number of users that can be mass blocked simultaneously on Special:Investigate
$wgCheckUserForceSummary false Configure isso como 'true' se você quiser forçar os checkusers a dar um motivo para cada verificação que eles fizerem através de Special:CheckUser. (não é muito útil, uma vez que os checkusers poderiam simplesmente dar um resumo como "eles precisam ser verificados" ou "Eu sinto que é necessário" e o software não saberia)
$wgCheckUserCIDRLimit [ 'IPv4' => 16, 'IPv6' => 19 ] Limite CIDR mais curto em que podem se verificar em qualquer verificação de intervalo individual.
$wgCUPublicKey '' Chave pública para criptografar dados privados que podem ser lidos posteriormente. Gera uma chave pública com algo como:

openssl genrsa -out cu.key 2048; openssl rsa -in cu.key -pubout > cu.pub e colar o conteúdo do cu.pub aqui

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 This can be used to add a link to Special:MultiLock by CentralAuth to the Special:CheckUser's mass block form. This requires the CentralAuth extension to be installed on the 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. For example:
$wgCheckUserCAMultiLock = [
    'centralDB' => 'metawiki',
    'groups' => [ 'steward' ]
];
$wgCheckUserCAtoollink false Since 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. For example:
$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. For example:
$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 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 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:

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