Extension:TorBlock

From MediaWiki.org

Jump to: navigation, search

           

Manual on MediaWiki Extensions
List of MediaWiki Extensions
Crystal Clear action run.png
TorBlock

Release status: stable

Implementation  User access
Description Automatically applies restrictions to Tor exit nodes.
Author(s)  Andrew Garrett (WerdnaTalk)
License GPL
Download Download snapshot

Subversion [Help]
Browse source code

check usage (experimental)

Automatically applies restrictions to Tor exit nodes.

[edit] Parameters

$wgTorBypassPermissions = array( '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;

Load and cache a list of Tor nodes as necessary if the list is not stored in cache under the key 'mw-tor-exit-nodes'. Despite code comments, APC appears to be usable as cache. loadExitNodes.php can be used in a cron job instead of this.

$wgTorIPs = array( '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.

$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 autoconfirmed status.

$wgTorAllowedActions = array( 'read' );

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

This extension is being used on one or more of Wikimedia's wikis. It means that the extension is stable and works well enough to be used by such high traffic websites. A full list of the extensions installed on a particular wiki is produced by Special:Version on that wiki.