Extension:ConfirmEdit

The ConfirmEdit extension enables a very simple text Captcha that will probably catch most bots. It was designed after MediaWiki 1.5, largely by Brion VIBBER. The FancyCaptcha addon extension creates more complex image captchas.

Captchas are a way of combating automated edits, helping to ensure that wiki edits are being made by real humans rather than bots. This can be particularly useful for reducing the problem of wiki spam, but captchas reduce accessibility and cause inconvenience to human users. In addition, it will not completely spam-proof your wiki (nor will it protect it from human spammers). You may wish to use this in conjunction with other anti-spam features. Remember to clean up any spam which might slip through the net (keep an eye on your 'recent changes' page). Captcha's can also be used to foil automated login attempts that try to guess passwords.

The reCAPTCHA Plugin is based on ConfirmEdit, and works very similarly. The reCAPTCHA plugin provides an audio CAPTCHA, does not require any python libraries, and has a stronger visual CAPTCHA than ConfirmEdit.

ConfirmEdit
The ConfirmEdit extension requires MediaWiki 1.6.0+.


 * 1) Download the two files from Wikimedia SVN (latest ConfirmEdit.php and ConfirmEdit.i18n.php).
 * 2) Create a folder in the extensions folder named ConfirmEdit
 * 3) Upload the files to the extensions/ConfirmEdit/ folder
 * 4) Edit LocalSettings.php in the root of your MediaWiki installation, and add the following line:

That's all.


 * If you wish, open ConfirmEdit.php and customize:
 * $wgCaptchaTriggers,
 * $ceAllowConfirmedEmail, (Allow users who have confirmed their e-mail addresses to post URL links without being harassed by the captcha) and
 * $wgCaptchaWhitelist. (Specific IP addresses are not harrassed by the captcha) (Alternatively, these settings can be customized in LocalSettings.php.)

FancyCaptcha addon
The FancyCaptcha addon extension requires MediaWiki 1.6.0+ and the ConfirmEdit extension. The Python Imaging Library must be installed to create the captcha images, but isn't needed after that.


 * 1) Download the files from Wikimedia SVN (latest FancyCaptcha.php and FancyCaptcha.i18n.php).
 * 2) Upload the files to the extensions/ConfirmEdit/ from the root of your MediaWiki installation.
 * 3) If you wish, open ConfirmEdit.php</tt> and customize $wgCaptchaTriggers</tt>, $ceAllowConfirmedEmail</tt>, and $wgCaptchaWhitelist</tt>.
 * 4) Change the $wgCaptchaClass</tt> line in ConfirmEdit.php</tt> to:
 * 5) Add the following lines to LocalSettings.php</tt> in the root of your MediaWiki installation:
 * 6) Open FancyCaptcha.php</tt> and set the variable $wgCaptchaDirectory</tt> to the directory where you will store Captcha images.  Below it set $wgCaptchaSecret</tt> to your passphrase.
 * 7) Create the images by running the following, where:
 * 8) * font is a path to some font, for instance AriBlk.TTF.
 * 9) * wordlist is a path to some word list, for instance /usr/share/dict/words. (Note: on Debian/Ubuntu, the 'wbritish' and 'wamerican' packages provide such lists. On Fedora, use the 'words' package).
 * 10) * key is the the exact passphrase you set $wgCaptchaSecret</tt> to. Use quotes if necessary.
 * 11) * output is the path to where the images should be stored (defined in $wgCaptchaDirectory</tt>).
 * 12) * count is how many images to generate.
 * 13) * An example, assuming you're in the extensions/ConfirmEdit directory (font location from Ubuntu 6.06, probably different on other operating systems):
 * 1) * count is how many images to generate.
 * 2) * An example, assuming you're in the extensions/ConfirmEdit directory (font location from Ubuntu 6.06, probably different on other operating systems):
 * 1) * An example, assuming you're in the extensions/ConfirmEdit directory (font location from Ubuntu 6.06, probably different on other operating systems):

Configuration
ConfirmEdit introduces a ['skipcaptcha'] for wgGroupPermissions. This is useful for groups that shouldn't see captchas ever. (Bots and Sysops)

Defaults from ConfirmEdit.php:

There are four triggers that can generate a captcha and allow for different situations.


 * $wgCaptchaTriggers['edit'] = true; -- Would check on every edit
 * $wgCaptchaTriggers['create']	= true; -- Check on page creation.
 * $wgCaptchaTriggers['addurl'] = true;  -- Check on edits that add URLs
 * $wgCaptchaTriggers['createaccount'] = true; -- Check on account creation.
 * $wgCaptchaTriggers['badlogin'] = true; -- Check after a failed log-in attempt.

Default triggers from ConfirmEdit.php: