Extension:TorBlock

This page is a translated version of the page Extension:TorBlock and the translation is 14% complete.
Other languages:
English • ‎français • ‎русский • ‎中文 • ‎日本語
MediaWiki 拡張機能マニュアル
OOjs UI icon advanced.svg
TorBlock
リリースの状態: 安定
実装 利用者アクセス
説明 Automatically applies restrictions to Tor exit nodes with access to the wiki's front-door server.
作者 Andrew Garrett (Werdnatalk)
最新バージョン 1.1.0 (Continuous updates)
MediaWiki 1.29+
PHP 5.5+
ライセンス GNU 一般公衆利用許諾書 2.0 以降
ダウンロード
  • $wgTorIPs
  • $wgTorBypassPermissions
  • $wgTorLoadNodes
  • $wgTorDisableAdminBlocks
  • $wgTorAutoConfirmAge
  • $wgTorAutoConfirmCount
  • $wgTorAllowedActions
  • $wgTorOnionooServer
  • $wgTorOnionooCA
  • $wgTorProjectCA
  • $wgTorTagChanges
torunblocked
translatewiki.net で翻訳を利用できる場合は、TorBlock 拡張機能の翻訳にご協力ください
使用状況とバージョン マトリクスを確認してください。
問題点 未解決のタスク · バグを報告

The TorBlock extension automatically applies restrictions to Tor exit node's access to the wiki's front-door server.


インストール

  • ダウンロードして、ファイルを extensions/ フォルダー内の TorBlock という名前のディレクトリ内に配置します。

MediaWiki 1.24 以前を稼働させている利用者へ:

上記の手順では、wfLoadExtension() を使用してこの拡張機能をインストールする新しい方法を記載しています。 この拡張機能をこれらの過去のバージョン (MediaWiki 1.24 以前) にインストールする必要がある場合は、wfLoadExtension( 'TorBlock' ); の代わりに以下を使用する必要があります:

require_once "$IP/extensions/TorBlock/TorBlock.php";

設定

$wgTorBypassPermissions = [ 'torunblocked' ];

User account permissions that bypass Tor blocks.

By default, $wgGroupPermissions['user']['torunblocked'] = true; is set, so logged-in users will bypass permissions unless it is set to false.

$wgTorLoadNodes = true;

If set to true, the extension will always try to load a list of nodes if there is no current list available in the cache. Loading the exit node list is expensive, so some wikis may want to set this to false, and instead have loadExitNodes.php be run as a cron job to update the node list.

$wgTorIPs = [ '208.80.152.2' ];

An array of IP addresses that the wiki server uses. Only exit nodes allowed to connect to these IPs will be returned in the internal list. Note: this is only used when the extension has to fall back to the Tor Project's bulk list service, rather than using the newer Onionoo protocol.

$wgTorDisableAdminBlocks = true;

Disables existing Tor blocks made by admins.

$wgTorAutoConfirmAge = 0;
$wgTorAutoConfirmCount = 0;

Like $wgAutoConfirmAge and $wgAutoConfirmCount. Both sets of limits must be passed for an account to be granted any statuses defined in Manual:$wgAutopromote (including autoconfirmed status).

$wgTorAllowedActions = [ 'read' ];

Permissions allowed to Tor anonymous users. By default, Tor users cannot create accounts.

$wgTorOnionooServer = 'https://onionoo.torproject.org';
$wgTorOnionooCA = "$dir/torproject.crt";
$wgTorProjectCA = "$dir/torproject.crt";

By default, the extension uses a service called Onionoo, created by the Tor Project, to retrieve the list of exit nodes. Onionoo servers can be run by anybody, so a custom one (and its associated SSL certificate) can be set with these variables. The default is the Tor Project's own server.

$wgTorTagChanges = true;

Mark Tor edits as such

$wgTorBlockProxy = false;

Proxy to use, if not the default proxy