擴充功能:Tor封鎖
![]() 發布狀態: 穩定版本 |
|
---|---|
实现 | 用户访问 |
描述 | 自動限制Tor節點訪問站點伺服器 |
作者 | Andrew Garrett (Werdna讨论) |
最新版本 | 1.1.0 (Continuous updates) |
MediaWiki | 1.35+ |
PHP | 5.5+ |
许可协议 | GNU通用公眾授權條款2.0或更新版本 |
下載 | |
|
|
|
|
翻譯TorBlock扩展,若在translatewiki.net可用 | |
問題 | 尚未完成的工作 · 报告錯誤 |
The TorBlock extension automatically applies restrictions to Tor exit node's access to the wiki's front-door server.
Installation
- 下载文件,并将其放置在您
extensions/
文件夹中的TorBlock
目录内。 - 将下列代码放置在您的LocalSettings.php的底部: Configure as required.
wfLoadExtension( 'TorBlock' );
完成 – 在您的wiki上导航至Special:Version,以验证已成功安装扩展。
致使用MediaWiki 1.24或更早版本的用户:
上面的说明介绍的是安装此扩展的新方法,它使用wfLoadExtension()
。
如果您需要在早期版本(MediaWiki 1.24和更早版本)中安装此扩展,而不是wfLoadExtension( 'TorBlock' );
,您需要使用:
require_once "$IP/extensions/TorBlock/TorBlock.php";
Configuration
$wgTorBypassPermissions = [ 'torunblocked' ];
|
User account permissions that bypass Tor blocks.
By default, |
$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;
|
Like 手册:$wgAutoConfirmAge and $wgAutoConfirmCount . Both sets of limits must be passed for an account to be granted any statuses defined in 手册:$wgAutopromote (including autoconfirmed status). |
$wgTorAllowedActions = [ 'read' ];
|
Permissions allowed to Tor anonymous users. By default, Tor users cannot create accounts. |
$wgTorOnionooServer = 'https://onionoo.torproject.org';
|
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 |
此扩展用于一个或多个维基媒体项目。 这可能意味着扩展足够稳定、运作足够良好,可以用在这样的高流量的网站上。 请在维基媒体的CommonSettings.php和InitialiseSettings.php配置文件中查找此扩展的名称以查看哪些网站安装了该扩展。 特定wiki上的已安装的扩展的完整列表位于Special:Version页面。 |