Extension:AutoProxyBlock

From MediaWiki.org
Jump to navigation Jump to search

Other languages:
English • ‎polski • ‎日本語
MediaWiki extensions manual
Crystal Clear action run.svg
AutoProxyBlock
Release status: unmaintained
Implementation User access
Description Allows to block or logging proxy edits.
Author(s) Cryptocorynetalk
MediaWiki 1.29+
License GNU General Public License 2.0 or later
Download
Hooks used
GetIP
getUserPermissionsErrorsExpensive
ListDefinedTags
RecentChange_save
User
Translate the AutoProxyBlock extension if it is available at translatewiki.net
Check usage and version matrix.

The AutoProxyBlock extension allows to autoblock or logging (in common MediaWiki Log or by AbuseFilter) actions, performed through proxy.

Installation[edit]

  • Download and place the file(s) in a directory called AutoProxyBlock in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'AutoProxyBlock' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

To users running MediaWiki 1.24 or earlier:

The instructions above describe the new way of installing this extension using wfLoadExtension() If you need to install this extension on these earlier versions (MediaWiki 1.24 and earlier), instead of wfLoadExtension( 'AutoProxyBlock' );, you need to use:

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

Rights[edit]

  • "proxyunbannable" (by default it's right of sysops) allow avoiding proxy blocks if edit-like actions forbidden.
  • "notagproxychanges" protect account from tagging actions with "proxy" tag.

Settings[edit]

  • $wgProxyCanPerform -- array of actions, allowed to perform by proxy users (default -- "read" and "edit");
  • $wgTagProxyActions -- if set to true, extension add public "proxy" tag to all matched actions.
  • $wgAutoProxyBlockSources -- array of sources (proxy-lists):
    • $wgAutoProxyBlockSources['api'] -- array of MediaWiki API urls, used for retrieving proxy information (i.e. English Wikipedia, many proxies blocked by Procsee Bot).
    • $wgAutoProxyBlockSources['raw'] -- absolute path to local text files with proxy lists.
    • $wgAutoProxyBlockSources['key'] -- string, regex to detect proxy block on foreigh site (i.e. proxies in enwiki blocked with key "blocked proxy").
  • $wgAutoProxyBlockLog -- set to true for logging all forbidden proxy actions in Special:Log/proxyblock.