GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Main page
  • Get MediaWiki
  • Get extensions
  • Tech blog
  • Contribute
  • User help
  • FAQ
  • Technical manual
  • Support desk
  • Communication
  • Developer portal
  • Code statistics
  • Community portal
  • Recent changes

This view

  • Original page
  • New address

GeezerVison is showing www.mediawiki.org — Extension:TorBlock - MediaWiki

MediaWiki extensions manual
TorBlock
Release status: stable
Implementation User access
Description Automatically applies restrictions to Tor exit nodes with access to the wiki's front-door server.
Author(s) Andrew Garrett (Werdnatalk)
Latest version 1.1.0 (Continuous updates)
MediaWiki 1.35+
PHP 5.5+
Parameters
  • $wgTorBlockProxy
  • $wgTorIPs
  • $wgTorProjectCA
  • $wgTorAutoConfirmAge
  • $wgTorTagChanges
  • $wgTorAutoConfirmCount
  • $wgTorDisableAdminBlocks
  • $wgTorBypassPermissions
  • $wgTorAllowedActions
  • $wgTorOnionooCA
  • $wgTorOnionooServer
Added rights
  • torunblocked
Hooks used
  • AbortAutoblock
  • AbuseFilter-builder
  • AbuseFilterAlterVariables
  • ChangeTagsListActive
  • GetAutoPromoteGroups
  • GetUserBlock
  • ListDefinedTags
  • OtherBlockLogLink
  • RecentChange_save
  • UserCanSendEmail
  • UserRequirementsCondition
  • getUserPermissionsErrorsExpensive
Hooks provided
  • TorBlockBlockedMsg
Licence GNU General Public License 2.0 or later
Download
Download extension
Git [?]:
  • Browse repository (GitHub)
  • Gerrit code review
  • Git commit log
  • Download source tarball
Translate the TorBlock extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

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

Installation

  • Download and move the extracted TorBlock folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/TorBlock
    
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'TorBlock' );
    
  • Configure as required.
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration

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

$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 Manual:$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

See also

  • BulkBlock Extension – an extension that allows administrators to easily block multiple users at once on a MediaWiki website.
This extension is being used on one or more Wikimedia projects. This probably means that the extension is stable and works well enough to be used by such high-traffic websites. Look for this extension's name in Wikimedia's CommonSettings.php and InitialiseSettings.php configuration files to see where it's installed. A full list of the extensions installed on a particular wiki can be seen on the wiki's Special:Version page.
This extension is included in the following wiki farms/hosts and/or packages:
  • Miraheze
  • Weird Gloop
Retrieved from "https://www.mediawiki.org/w/index.php?title=Extension:TorBlock&oldid=8616676"
Categories:
  • Stable extensions
  • User access extensions
  • AbortAutoblock extensions
  • AbuseFilter-builder extensions
  • AbuseFilterAlterVariables extensions
  • ChangeTagsListActive extensions
  • GetAutoPromoteGroups extensions
  • GetUserBlock extensions
  • ListDefinedTags extensions
  • OtherBlockLogLink extensions
  • RecentChange save extensions
  • UserCanSendEmail extensions
  • UserRequirementsCondition extensions
  • GetUserPermissionsErrorsExpensive extensions
  • GPL licensed extensions
  • Extensions in Wikimedia version control
  • All extensions
  • Extensions used on Wikimedia
  • Extensions included in Miraheze
  • Extensions included in Weird Gloop
Hidden categories:
  • Extensions without an image
  • Extensions without a compatibility policy
  • Extensions with manual MediaWiki version
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.