Extension:CheckUser/zh


 * 這是一個關於-{A|zh-hans:扩展; zh-hant:擴充功能;}-本身的頁面. 關於維基媒體基金會的用户查核政策，見用户查核方针. 

CheckUser是一个允许拥有 权限的用户查核给定IP地址下的用户和给定用户使用的IP地址的，而无须手动在数据库运行查询的扩展. 這個擴展正運作在所有維基媒體的維基項目上.

更新将根据维基媒体基金会的wiki的需要进行，或在发现关键漏洞时进行.

Using MediaWiki-Docker
Follow the steps in to install this extension inside a MediaWiki Docker instance.

-{zh-hans:配置; zh-hant:組態;}-
这个工具可将最近的更改数据复制到单独的表格中，并在添加新条目时进行添加. 如果将 设置为 ，复制的数据将不包含相关的IP地址. However, entries added after installation of this extension will contain the IP address.

安装此扩展后，您可以减少 以缩短最近更改的时间，而不会影响查核用户. 使用 设置checkuser的查询日期，以秒为单位.

特定于查核用户的设置$wgCheckUserCIDRLimit决定了单次检查中可检查的最大范围. 他的格式与设置相同. 查核的默认限额为 ， 查核的默认限额为.

To allow this tool to log successful and failed login attempts as well as logouts, set  to. If you have bot accounts on your wiki, setting  to  will skip logging successful login attempts to bot accounts.



授权权限以使用用户查核
要授予Special:CheckUser、Special:Investigate 和Special:CheckUserLog的使用权，用户权限管理用户必须访问Special:UserRights，在框中输入用户名，然后选择 「checkuser」选项. 完成此操作后，上述特殊页面将显示在该用户的Special:SpecialPages页面中.

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

要赋予系统管理员该扩展的所有权限，请在 中输入以下内容：

要仅允许添加和删除 权限，请使用以下代码：

-{zh-hans:配置; zh-hant:組態;}-


Special:CheckUser 用法


基本界面
Try to succinctly summarise the situation (for example, "cross-wiki spam"); this will be logged in a log visible only to users with the  permission.
 * 1) 前往Special:CheckUser.
 * 2) 在“user”字段中，输入用户名（不带 前缀），IP网址或CIDR范围.
 * 3) * IP：任何IPv4或IPv6网址.
 * 4) * CIDR: you can check a range of IP addresses by appending the CIDR prefix. The CIDR prefix value for IPv4 can be between 16-32 and the value for IPv6 can be between 19-128. The smaller number for both ranges can be changed using the configuration variable $wgCheckUserCIDRLimit. For notation, see.
 * 1) * XFF: you can check a client IP address provided by X-Forwarded-For headers by appending  (for example,  ).
 * 1) Select the information you want to retrieve.
 * 1) *  - returns IP addresses used by a registered user.
 * 2) *  - returns all edits and logged actions made by users using an IP address or range specified in the target field, or if the target is a user all edits and logged actions by that user.
 * 3) *  - returns user accounts that have edited from an IP or range.
 * 1) In the "" field, type in the reason you are accessing the confidential data.



显示的信息
用户查核结果中的典型条目是用户摘要（“获取用户”）如下：


 * Example (talk | contribs | block) (Check) (20:11, -- 20:12, ) [5]
 * 127.0.0.37 XFF: 127.0.0.1, 127.0.0.5
 * Example user agent
 * Example user agent

这种格式适合将大量信息整合到一种非常容易列出和删除的格式中，但除非您知道所提供的信息，否则很难阅读. 信息如下：


 * 用户名 (用户连接) (从给定的IP或范围编辑的时间段：) [来自IP或范围的编辑数]
 * 來自編輯的IP地址 XFF: 提供XFF信息（可以被欺骗）

按使用顺序列出用于编辑的每个IP / XFF组合.

后面列出了每个用户在IP或范围内进行编辑的最后十个用户代理（浏览器、操作系统、系统语言和版本）.



XFF格式
XFF (X-Forwarded-For) headers indicate the series of IP addresses used from the user's computer (first) to the last proxy server. In case of Wikimedia, the last proxy server is one of the Wikimedia proxies (listed under in the Wikimedia configuration file).

另一个例子

aaa.aaa.aaa.aaa       XFF: 10.4.46.42, 127.0.0.1, aaa.aaa.aaa.aaa, 208.80.152.46


 * 前两个地址（ 、 ）是原始网络专用的，无法直接从公共互联网访问，
 * 第三个地址（ ）是编辑器的“公共面孔”，通常是宽带或拨号ISP，公司网关（但可能是匿名者或受恶意软件攻击的服务器），
 * 最后一个地址（ ）是维基媒体Squid之一（ ）.

MediaWiki configuration settings, , and extensions using the  hook (such as ) change the way an actual IP address used to attribute edits is selected.



个人工具链接
When you get results from Special:CheckUser you can add personal user tool links via the following interface messages:


 * for IP addresses (for example m:MediaWiki:checkuser-userlinks-ip)
 * for registered users (for example m:MediaWiki:Checkuser-userlinks)
 * for IPs in the 'Get IP Addresses' check type (for example m:MediaWiki:checkuser-toollinks)
 * for IP ranges produced by the CIDR calculator present at the bottom of all Special:CheckUser pages. Interface message added in 1.41.



Special:Investigate 用法


基本用法

 * 1) 前往Special:Investigate.
 * 2) In the  field, type in up to 10 targets, which may be usernames (without the   prefix), IP addresses, or CIDR ranges.
 * 3) In the  field, enter the reason you are accessing the confidential data, as described in the Special:CheckUser instructions above; this will be logged in a log visible only to users with the checkuser-log permission.

For advanced feature usage, see Help:Special Investigate.



定制工具链接
As with Special:CheckUser, links to external tools can be customized.

The links are defined in the  message. This message is parsed to find links, which are added to the menu in the  tab.

Showing IPs for temporary accounts
The CheckUser extension will show since MediaWiki 1.40 a button that is displayed next to temporary account user links which allows the revealing of their IP address.

This functionality is available exclusively to users with the  privilege, granting them the ability to view the IP addresses that are linked to temporary accounts. To access this information, the  Enable revealing IP addresses for temporary accounts  feature must be enabled on the user's Special:Preferences page.

These buttons will appear wherever user links are shown for a temporary account, such as when viewing page histories or in Special:Contributions. However, these will not be shown on Special:CheckUser, Special:Investigate or Special:InvestigateBlock.

CheckUser and CheckUserLog API
CheckUser提供了一个API，允许访问在Special:CheckUser和Special:CheckUserLog上显示的信息. These two APIs work fairly similarly to the special pages, but the reason for a check using the API is prefixed with "API:" to indicate they were made using the API. Example usages of these APIs are shown below.

api.php?action=query&list=checkuser&curequest=userips&cutarget=Jimbo_Wales api.php?action=query&list=checkuser&curequest=edits&cutarget=127.0.0.1/16&xff=1&cureason=Some_check
 * CheckUser API

api.php?action=query&list=checkuserlog&culuser=WikiSysop&cullimit=25 api.php?action=query&list=checkuserlog&cultarget=127.0.0.1&culfrom=20111015230000
 * CheckUserLog API

Temporary Account Reveal API
 Usage 

The TemporaryAccountHandler class offers API endpoints for retrieving the IP addresses associated with temporary user accounts. To access this information, the  Enable revealing IP addresses for temporary accounts  feature must be enabled on the user's Special:Preferences page.

 API endpoint 

where  is the user name you want to look up

 Response 

If the request is successful, the API will respond with a JSON object containing the following fields: If the request fails, the API will respond with an appropriate error code and message.

 Example request 

 Example response 

TemporaryAccountRevisionHandler
The TemporaryAccountRevisionHandler class offers API endpoints for viewing the IP associated with a revision for temporary accounts. You can specify one or multiple revision IDs in the query string.

 API endpoint 

where  is the revision ID(s) you want to look up separated by the   character.

 Response 

If the request is successful, the API will respond with a JSON object containing the following fields:

If the request fails, the API will respond with an appropriate error code and message.

 Example request 

 Example response 

 Example request with multiple revisions 

 Example response