Extension:BlockOpenProxies
From MediaWiki.org
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 |
GitHub: Note: |
||
|
|||
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.)
Contents
Installation[edit | edit source]
- Download and extract the file(s) in a directory called
BlockOpenProxies
in yourextensions/
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]
- http://www.stopforumspam.com/downloads/ — Daily-updated CSV files of open proxy IP addresses
- Extension:StopForumSpam
Language: | English |
---|