Kiterjesztés:CheckUser
![]() Kiadási állapot: stabil |
|
---|---|
![]() |
|
Megvalósítás | Speciális lap , Felhasználóazonosítás |
Leírás | CheckUser function allows a user with permissions to check which IPs are used by a given username and which usernames are used by a given IP, without having to run queries directly against the database by hand. |
Szerző(k) | Tim Starling, Aaron Schulz |
Legfrissebb verzió | 2.5 (continuous updates) |
Kompatibilitási irányelv | Snapshots releases along with MediaWiki. Master is not backward compatible. |
MediaWiki | 1.27+ |
PHP | 5.4+ |
Adatbázis-változtatások | Igen |
Táblák | cu_changes cu_log |
Licenc | GNU General Public License 2.0 or later |
Letöltés | |
|
|
|
|
Fordítsd le a(z) CheckUser kiterjesztést, ha elérhető a translatewiki.net oldalon | |
Problémák | Nyitott feladatok · Hibajelentés |
- Ez a lap a kiterjesztésről szól. A Wikimédia Alapítvány IP-ellenőrzési irányelvét itt találod.
CheckUser is an extension that allows a user (with the checkuser
permission) to check which IP addresses are used by a given username and which usernames are used by a given IP, without having to run queries directly against the database by hand.
A kiterjesztés minden Wikimédia-wikin telepítve van.
Letöltés
Ez a kiterjesztés elérhető közvetlenül Gitről [?]:
- Böngészd a forrást
- Bizonyos kiterjesztések rendelkeznek címkékkel a stabil kiadásokhoz.
- Böngészd a címkéket
- Válaszd ki a címkét
- Kattints a „snapshot” gombra
- Minden ág egy adott MediaWiki-kiadáshoz tartozik. Van egy „master” ág is, ami a legfrissebb alfaverziót tartalmazza (igényelheti a MediaWiki egy alfaverzióját).
- Böngészd az ágakat
- Válassz egy ágnevet
- Kattints a „Folytatás”-ra
Bontsd ki a letöltött fájlt a MediaWiki-telepítésed extensions/CheckUser/ könyvtárába.
Ha ismered a gitet és van shell-hozzáférésed a szerverhez, így is beszerezheted a kiterjesztést:
cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/CheckUser.git
Telepítés
A kiterjesztés a GNU Általános Nyilvános Licenc 2.0 vagy újabb alatt áll. The software is provided as-is. Updates will be made according to the needs of Wikimedia wikis; or where critical vulnerabilities are discovered.
Létező wikin
Alapok
- Ha telepítettél más kiterjesztéseket a
php maintenance/update.php
futtatása nélkül, először futtasd.
- Töltsd le a kiterjesztés fájljait, és mentsd el az
extensions/
mappán belüliCheckUser
könyvtárba. - Add hozzá az alábbi sort a LocalSettings.php fájl aljához:
wfLoadExtension( 'CheckUser' );
- A MediaWiki 1.27-es vagy korábbi verziói felhasználóinak:
- Telnet/SSH-kliens (pl. PuTTY) használatával navigálj el az
extensions/CheckUser
könyvtárba és add ki aphp install.php
parancsot. If you don't see aninstall.php
in that folder, you may need to switch to an older version of this extension, to match your MediaWiki version, using a command similar togit checkout REL1_26
. Győződj meg, hogy a PHP 5.x verzióját futtatod, ellenkező esetben a szkript nem fog működni. Ha azinstall.php
nem létezik, aphp maintenance/update.php
újabb futtatása szükséges. Az eredmény az alábbihoz hasonló lesz:
...cu_changes table added. ...doing rc_id from 368856 to 368955.... ... ...cu_changes table added and populated. ...cu_log added ...logging disabled, skipping log import.
- Kész – A Special:Version oldalon ellenőrizheted, hogy a kiterjesztés ténylegesen feltelepült-e.
A MediaWiki 1.24-es vagy korábbi verziói felhasználóinak:
A fenti útmutató a kiterjesztés új, wfLoadExtension()
kóddal való telepítését írja le.
Ha korábbi (MediaWiki 1.24 vagy régebbi) verzióra szeretnéd feltelepíteni a kiterjesztést, a wfLoadExtension( 'CheckUser' );
helyett az alábbi kódot kell használnod:
require_once "$IP/extensions/CheckUser/CheckUser.php";
Telepítés parancssor nélkül
Sok tárhelyszolgáltató nem engedélyezi a közvetlen shell-hozzáférést, de engedélyezi a cron feladatok futtatását (pl. a cPanel webinterfészen keresztül).
Ebben az esetben ideiglenes cron feladat létrehozásával is futtatható a php /path/to/install.php
parancs (a /path/to
helyett az aktuális telepítési útvonalat kell megadni).
If you are using a remote server and do not have command prompt access (nor cron job solution is suitable for you), but do have access through phpMyAdmin, substitute these steps for step #2 above:
- Töltsd le a cu_changes.sql és cu_log.sql fájlokat
- A phpMyAdminban válaszd ki baloldalt a wikidhez tartozó adatbázist.
- A következő képernyőn kattints a lap tetején lévő "Import/Importálás" fülre.
- At "Location of the text file", choose one of the files, select compression "None", and click the bottom "Go" button.
- If your phpMyAdmin screen has only a text field and no text file chooser, click the "SQL" button in the left-side column, under the phpMyAdmin logo, and click the "import files" tab in the new window that opens.
- Ismételd meg mindezt a második fájllal
Új wikin
Hajtsd végre az egyes pontot, majd futtasd a MediaWiki telepítőjét. Ha bepipálod a jelölőnégyzetet, a telepítő automatikusan telepíti a kiterjesztést.
Beállítás
This tool migrates recent changes data to a separate cu_changes
table, and adds to that when new entries are added.
If $wgPutIPinRC
was previously set to false
, there will be no initial data to search but new edits will fill in as soon as the extension is set up.
After you run the queries, you can reduce $wgRCMaxAge
to make recentchanges shorter, without affecting checkuser.
Use $wgCUDMaxAge
to set how far back checkuser data can go, in seconds.
In versions for MediaWiki 1.22 and later, the CheckUser-specific setting $wgCheckUserCIDRLimit determines the largest range that can be checked in a single check.
Its format is the same as $wgBlockCIDRLimit .
Otherwise, the default limit (for all versions) is /32
for IPv6
checks and /16
for IPv4
checks.
Mozilla Firefoxot használó IP-ellenőrök hozzáadhatják ezt a szkriptet saját .js
fájljukhoz.
It makes retrieving IP WHOIS data easier.
It requires applets.codebase.principle
support (about:config
) enabled.
(This can be signed.applets.codebase_principle_support
in Firefox 3)
To enable Special:Investigate, set $wgCheckUserEnableSpecialInvestigate
to true
in LocalSettings.php.
IP-ellenőrök kinevezése
To grant the right to use the Check User function, a user with user rights management must go to Special:UserRights and enter the user's name in the box, then select the option "Check User". Once this is done, the Check User option will show up on the Special:SpecialPages page for that user.
To turn on user rights management for sysops, put the following into LocalSettings.php
:
$wgGroupPermissions['sysop']['checkuser'] = true;
$wgGroupPermissions['sysop']['checkuser-log'] = true;
$wgGroupPermissions['sysop']['investigate'] = true;
To only allow the adding and removing of the checkuser
permission, use the following instead:
$wgAddGroups['sysop'][] = 'checkuser';
$wgRemoveGroups['sysop'][] = 'checkuser';
Beállítás
paraméter | alapértelmezett | megjegyzés |
---|---|---|
$wgCUDMaxAge
|
7776000
|
How long to keep CU data (in seconds)? (default = 3 months) |
$wgCheckUserMaxBlocks
|
200
|
Mass block limits |
$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' => 32 ]
|
Shortest CIDR limits that can be checked in any individual range check |
$wgCUPublicKey
|
''
|
Public key to encrypt private data that may need to be read later. Generate a public key with something like:
|
$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
|
false
|
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. |
Special:CheckUser usage
Alap interfész
- Go to Special:CheckUser.
- In the user field, type in the username (without the
User:
prefix), IP address, or CIDR range.
- IP: any IPv4 or IPv6 address.
- CIDR: you can check a range of IP addresses by appending the CIDR prefix (by default, up to /16 for IPv4 (65,536 addresses), up to /64 for IPv6 (~1.8446*1019 addresses) before gerrit:7352, up to /48 for IPv6 (~1.2089*1024 addresses or 65536 /64s - controlled by $wgCheckUserCIDRLimit in the latest version) after revision 7352, and up to /32 (65536 /48's) after phab:rECHU9d7c239bf88866eca577f3241194d440f94fa014).
For notation, see Range blocks.
- XFF: you can check a client IP address provided by X-Forwarded-For headers by appending
/xff
(for example,127.0.0.1/xff
).
- XFF: you can check a client IP address provided by X-Forwarded-For headers by appending
- Select the information you want to retrieve.
- Get IPs: returns IP addresses used by a registered user.
- Get edits from IP: returns all edits and logged actions made by a user (registered or anonymous) from an IP address or range.
- Get users: returns user accounts that have edited from an IP or range.
- In the reason field, type in the reason you are accessing the confidential data.
Try to succinctly summarise the situation (for example, "cross-wiki spam"); this will be logged in a log visible only to users with the checkuser-log
permission.
- Screenshots
-
Alap interfész
-
Példa szerkesztőnév ellenőrzésére
-
Példa IP-cím ellenőrzésre
-
Példa a naplóra
A kinyert információ
Egy tipikus naplóbejegyzés a következőképpen néz ki:
This is formatted to fit a lot of information into a format that can very easily be listed and skimmed, but is difficult to read unless you know what the information provided is. The information is laid out as follows:
- felhasználónév (user links) (time period when they edited from the given IP or range) [number of edits from the IP or range]
- IP address edited from XFF: XFF information provided (can be spoofed)
Each IP/XFF combination used to edit is listed, in order of use.
The last ten user agents (browser, operating system, system language, and versions) for each user for edits made in the IP or range are listed afterwards.
XFF-formátum
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 $wgCdnServersNoPurge in the Wikimedia configuration file).
Ebben az esetben:
aaa.aaa.aaa.aaa XFF: 10.4.46.42, 127.0.0.1, aaa.aaa.aaa.aaa, 208.80.152.46
- az első két cím (
10.4.46.42
,127.0.0.1
) csak a belső hálózatról érhető el, - a harmadik cím (
aaa.aaa.aaa.aaa
) a felhasználó nyilvános „arca”, ami lehet DSL-, vagy betárcsázós kapcsolat, illetve vállalati átjáró (de valószínűleg anonimizáló szolgáltatás vagy zombiszerver), - az utolsó cím (
208.80.152.46
) a Wikimédia-squidek egyike (sq36.wikimedia.org
).
MediaWiki configuration settings $wgUsePrivateIPs , $wgCdnServers , $wgCdnServersNoPurge and extensions using the IsTrustedProxy hook (such as Extension:TrustedXFF ) change the way an actual IP address used to attribute edits is selected.
Personal tool links
When you get results from Special:CheckUser you can add personal user tool links via two interface messages:
MediaWiki:checkuser-userlinks-ip
for IP addresses (for example m:MediaWiki:checkuser-userlinks-ip)
MediaWiki:Checkuser-userlinks
for registered users (for example m:MediaWiki:Checkuser-userlinks)
Special:Investigate usage
Basic usage
- Go to Special:Investigate.
- In the Usernames and IP addresses field, type in up to 10 targets, which may be usernames (without the
User:
prefix), IP addresses, or CIDR ranges. - In the Reason 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 investigate permission.
- Screenshots
-
Input form
-
Account information tab
-
IPs and user agents tab
-
Timeline tab
For advanced feature usage, see Help:Special Investigate.
Customizing tool links
As with Special:CheckUser, links to external tools can be customized.
The links are defined in the checkuser-investigate-compare-toollinks
message.
This message is parsed to find links, which are added to the menu in the IPs and user agents tab.
API
A CheckUser egy API-t is biztosít.
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
api.php?action=query&list=checkuserlog&culuser=WikiSysop&cullimit=25 api.php?action=query&list=checkuserlog&cultarget=127.0.0.1&culfrom=20111015230000
Ezt a kiterjesztést egy vagy több Wikimédia-projekt használja. Ez valószínűleg azt jelenti, hogy stabil és nagy biztonsággal használható ilyen forgalmas oldalakon is. A kiterjesztést használó wikik pontos listáját a Wikimédia CommonSettings.php és InitialiseSettings.php konfigurációs fájljaiban a nevére keresve találhatod meg. Egy adott wikin telepített összes kiterjesztés listája a wiki Special:Version oldalán található. |
This extension is included in the following packages and/or wiki farms: |