Extension:BlockOpenProxies

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual
Crystal Clear action run.png
BlockOpenProxies

Release status: beta

Description Blocks open proxies
Author(s) Nathan Larson (Leucostictetalk)
Latest version 1.0.1
MediaWiki 1.23+
Tables proxy
License GPL
Download
Hooks used
userCan

Translate the BlockOpenProxies extension if it is available at translatewiki.net

Check usage and version matrix; code metrics

BlockOpenProxies is a MediaWiki extension that blocks open proxies. It contains a MediaWiki script, addProxies.php, that creates a proxy table and adds to it a list of IP addresses from a CSV file. (TODO: The table should be added by update.php, not by addProxies.php.) (TODO: It's pointless to run this (possibly expensive) query except when the user is trying to edit.)

Installation[edit | edit source]

  • Download and extract the file(s) in a directory called BlockOpenProxies in your extensions/ folder. If you're a developer and this extension is in a Git repository, then instead you should clone the repository.
  • Add the following code at the bottom of your LocalSettings.php:
require_once "$IP/extensions/BlockOpenProxies/BlockOpenProxies.php";
  • Done! Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.

Usage[edit | edit source]

Download bannedips.zip from http://www.stopforumspam.com/downloads/ and unzip it to the maintenance directory. Also put addProxies.php in the maintenance directory. Go to the command line, and do

$ php addProxies.php --file=bannedips.csv

Parameters[edit | edit source]

Option/Parameter Required? Description
--delete-existing No Clear the proxy table of all existing proxies before adding the new ones
--file Yes Filename

See also[edit | edit source]

Language: English