Extension:BlockOpenProxies

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced.svg
BlockOpenProxies
Release status: unmaintained
Description Blocks open proxies
Author(s) Nathan Larson (Leucostictetalk)
Latest version 1.0.1
MediaWiki 1.23+
Tables proxy
License GNU General Public License 2.0 only
Download
Hooks used
userCan
Translate the BlockOpenProxies extension if it is available at translatewiki.net
Check usage and version matrix.

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]

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

Usage[edit]

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]

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]