Extension:GlobalBlocking
![]() リリースの状態: ベータ |
|
---|---|
![]() |
|
実装 | 特別ページ , 利用者識別 , API |
説明 | Allows IP addresses to be blocked on multiple wikis |
作者 | Andrew Garrett (Werdnaトーク) |
MediaWiki | 1.13-alpha and later |
データベースの変更 | はい |
テーブル | globalblocks global_block_whitelist |
ライセンス | GNU 一般公衆利用許諾書 2.0 以降 |
ダウンロード | |
|
|
Quarterly downloads | 33 (Ranked 127th) |
Public wikis using | 1,015 (Ranked 250th) |
translatewiki.net で翻訳を利用できる場合は、GlobalBlocking 拡張機能の翻訳にご協力ください | |
Vagrant role | globalblocking |
問題点 | 未解決のタスク · バグを報告 |
The GlobalBlocking extension allows a user with the appropriate permissions to block an IP address or IP address range (but not accounts) on all wikis in a group sharing the same globalblocking
database.
It is intended to be used for combating severe cross-wiki vandalism and spam.
インストール
- ダウンロードして、ファイルを
extensions/
フォルダー内のGlobalBlocking
という名前のディレクトリ内に配置します。
Developers and code contributors should install the extension from Git instead, using:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/GlobalBlocking - 以下のコードを LocalSettings.php ファイルの末尾に追加します:
wfLoadExtension( 'GlobalBlocking' );
- You will also need to create a dedicated database for this extension to work. At a minimum (all wikis running on the same host), you need to create a local database called
'globalblocking'
(or specify a different name in$wgGlobalBlockingDatabase
), and grant all database users that your wikis run as full permissions on that database (at a minimum,SELECT, UPDATE, INSERT, DELETE
). - After creating the database, you should import the SQL from
tables-generated-globalblocks.sql
into the global blocking database. - You also need to run
update.php
on each of your local databases, or otherwise import the SQL schema intables-generated-global_block_whitelist.sql
to them. 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。
設定
- $wgApplyGlobalBlocks
- Whether to respect global blocks on this wiki. This is used so that global blocks can be set on one wiki, but not actually applied there (i.e. so people can contest them on that wiki).
- $wgGlobalBlockingBlockXFF
- The flag
$wgGlobalBlockingBlockXFF
, set totrue
by default, causes blocks to apply to all of the IP addresses in the X-Forwarded-For (XFF) header. Set this flag to false to disable this feature. For more details, see タスク T25343.
API
Two API modules are provided, one to (un)block users, and another to view existing global blocks. They are documented at Extension:GlobalBlocking/API.
使用法
The following requires appropriate permissions, assigned by default to stewards, which by default can be added or removed by bureaucrats. To make a global block:
- Go to Special:GlobalBlock.
- Enter the IPv4 address or range (up to /16) that you wish to block (or any IPv6 address or range up to /4 if you made the schema changes prescribed in the installation instructions section of this page or you have the latest revision), and decide if you want to only block anonymous users. To only block anonymous users, check the checkbox.
- Submit the form. The IP address or range is now globally blocked on your wikis that opt in to the global blocking. Account creation is blocked (even if you selected "anonymous users only": phab:T42190), and the blocked IP or range cannot edit any associated user talk pages on any wiki affected and opted in to the global block. If Extension:AbuseFilter is installed, globally blocked IP addresses are prohibited from viewing the abuse log if the particular wiki is opted in to the block.
To remove a global block:
- Go to Special:GlobalUnblock and click "Remove a global block".
- Enter the IP address or range to unblock and the reason, and submit the form. The IP address or range will no longer be globally blocked.
関連項目
- Combating spam
- Combating vandalism
- BulkBlock Extension — an extension that allows administrators to easily block multiple users at once on a MediaWiki website.
![]() | この拡張機能は 1 つ以上のウィキメディアのプロジェクトで使用されています。 これはおそらく、この拡張機能が安定していて高いトラフィックのウェブサイトでも十分に動作することを意味します。 この拡張機能がインストールされている場所を確認するには、ウィキメディアの設定ファイル CommonSettings.php および InitialiseSettings.php 内で、この拡張機能の名前を探してください。 特定のウィキにインストールされている拡張機能の完全な一覧は、そのウィキの Special:Version ページにあります。 |
![]() | この拡張機能は以下のウィキ ファーム/ウィキ ホスト/パッケージに含まれています: これは正式な一覧ではありません。 一部のウィキ ファーム/ウィキ ホスト/パッケージは、ここに記載されていなくてもこの拡張機能を含んでいる場合があります。 必ずご利用のウィキ ファーム、ウィキ ホスト、バンドルで確認してください。 |
Categories:
- Beta status extensions/ja
- Special page extensions/ja
- User identity extensions/ja
- API extensions/ja
- GPL licensed extensions/ja
- Extensions in Wikimedia version control/ja
- ContributionsToolLinks extensions/ja
- GetBlockErrorMessageKey extensions/ja
- GetLogTypesOnUser extensions/ja
- GetUserBlock extensions/ja
- LoadExtensionSchemaUpdates extensions/ja
- OtherBlockLogLink extensions/ja
- SpecialContributionsBeforeMainOutput extensions/ja
- SpecialPasswordResetOnSubmit extensions/ja
- UserIsBlockedGlobally extensions/ja
- UserMergeAccountFields extensions/ja
- All extensions/ja
- Extensions used on Wikimedia/ja
- Extensions included in Miraheze/ja
- Extensions included in Telepedia/ja
- Extensions included in WikiForge/ja
- Extensions included in WikiTide/ja
- Extensions for data exchange with other local wikis/ja