Go to file
Translation updater bot 80ae861dc1 Localisation updates from https://translatewiki.net.
Change-Id: I1a7c9eabed8daddfa837ee2112a467c716e6ce1d
2022-05-04 08:18:21 +02:00
.phan Replace deprecated methods IContextSource::getWikiPage && IContextSource::canUseWikiPage 2021-11-11 17:02:30 +02:00
FancyCaptcha Localisation updates from https://translatewiki.net. 2022-05-04 08:18:21 +02:00
hCaptcha Localisation updates from https://translatewiki.net. 2022-04-18 10:05:44 +02:00
i18n Localisation updates from https://translatewiki.net. 2022-04-25 08:17:37 +02:00
includes Use Html::warningBox instead of hardcoded class 2022-03-24 11:03:48 -07:00
maintenance DeleteOldFancyCaptchas: Add some simple chunking to actual delete operation 2021-11-16 14:53:30 +00:00
MathCaptcha Use namespaced MathRenderer in MathCaptcha 2021-10-03 22:15:57 +02:00
QuestyCaptcha Localisation updates from https://translatewiki.net. 2022-04-01 08:26:26 +02:00
ReCaptchaNoCaptcha Localisation updates from https://translatewiki.net. 2022-03-30 08:17:51 +02:00
resources Fix field placeholder for QuestyCaptcha and others 2021-01-26 00:15:33 +01:00
SimpleCaptcha Replace deprecated methods IContextSource::getWikiPage && IContextSource::canUseWikiPage 2021-11-11 17:02:30 +02:00
tests/phpunit tests: Remove access to private ExtensionProcessor::globalSettings variable 2022-03-11 21:50:21 +00:00
.eslintrc.json build: Updating eslint-config-wikimedia to 0.19.0 2021-03-13 08:26:29 +00:00
.gitignore build: Upgrade eslint-config-wikimedia from 0.10.1 to 0.11.0 2019-04-03 15:54:28 -07:00
.gitreview Whoops, track not trace 2016-10-24 17:02:20 -07:00
.mailmap Update Legoktm's mailmap entry 2021-04-11 19:15:29 -07:00
.phpcs.xml build: Updating eslint-config-wikimedia to 0.18.2 2021-03-06 10:54:05 +00:00
.stylelintrc.json Use json extension for .stylelintrc 2017-08-19 09:42:18 +02:00
AUTHORS.txt Update AUTHORS.txt 2016-08-17 23:08:41 +02:00
blacklist Alphasort blacklist 2019-05-26 11:59:04 +01:00
captcha-old.py Update captch(-old)?.py shebang to python 3 2020-12-01 14:16:56 +00:00
captcha.py Update captch(-old)?.py shebang to python 3 2020-12-01 14:16:56 +00:00
CODE_OF_CONDUCT.md build: Updating mediawiki/phan-taint-check-plugin to 1.3.0 2018-08-19 12:06:19 -07:00
composer.json build: Updating dependencies 2022-02-06 08:30:22 +00:00
ConfirmEdit.alias.php Add alias for Serbian Latin script 2019-12-25 08:57:45 +01:00
COPYING Add COPYING 2014-02-08 01:51:17 +00:00
extension.json Replace uses of the deprecated setters of AbstractAuthenticationProvider 2021-05-25 15:34:56 +00:00
Gruntfile.js build: Update eslint-config-wikimedia to 0.16.2 2020-07-01 14:44:35 +00:00
package-lock.json build: Updating grunt to 1.5.2 2022-04-27 08:59:57 +00:00
package.json build: Updating grunt to 1.5.2 2022-04-27 08:59:57 +00:00
README.md Deprecate $wgAllowConfirmedEmail 2021-03-27 14:00:56 +00:00

ConfirmEdit

ConfirmEdit extension for MediaWiki

This extension provides various CAPTCHA tools for MediaWiki, to allow for protection against spambots and other automated tools.

For more information, see the extension homepage at: https://www.mediawiki.org/wiki/Extension:ConfirmEdit

Overview

The following modules are included in ConfirmEdit:

  • SimpleCaptcha - users have to solve an arithmetic math problem
  • MathCaptcha - users have to solve a math problem that's displayed as an image
  • FancyCaptcha - users have to identify a series of characters, displayed in a stylized way
  • QuestyCaptcha - users have to answer a question, out of a series of questions defined by the administrator(s)
  • ReCaptchaNoCaptcha - users have to solve different types of visually or audially tasks.
  • hCaptcha - users have to solve visual tasks

License

ConfirmEdit is published under the GPL license.

Authors

The main framework, and the SimpleCaptcha and FancyCaptcha modules, were written by Brion Vibber.

The MathCaptcha module was written by Rob Church.

The QuestyCaptcha module was written by Benjamin Lees.

Additional maintenance work was done by Yaron Koren.

Configuration comments

/**
 * List of IP ranges to allow to skip the captcha, similar to the group setting:
 * "$wgGroupPermission[...]['skipcaptcha'] = true"
 *
 * Specific IP addresses or CIDR-style ranges may be used,
 * for instance:
 * $wgCaptchaWhitelistIP = array('192.168.1.0/24', '10.1.0.0/16');
 */
$wgCaptchaWhitelistIP = false;

/**
 * Actions which can trigger a captcha
 *
 * If the 'edit' trigger is on, *every* edit will trigger the captcha.
 * This may be useful for protecting against vandalbot attacks.
 *
 * If using the default 'addurl' trigger, the captcha will trigger on
 * edits that include URLs that aren't in the current version of the page.
 * This should catch automated linkspammers without annoying people when
 * they make more typical edits.
 *
 * The captcha code should not use $wgCaptchaTriggers, but CaptchaTriggers()
 * which also takes into account per namespace triggering.
 */
$wgCaptchaTriggers = array();
$wgCaptchaTriggers['edit']          = false; // Would check on every edit
$wgCaptchaTriggers['create']        = false; // Check on page creation.
$wgCaptchaTriggers['sendemail']     = false; // Special:Emailuser
$wgCaptchaTriggers['addurl']        = true;  // Check on edits that add URLs
$wgCaptchaTriggers['createaccount'] = true;  // Special:Userlogin&type=signup
$wgCaptchaTriggers['badlogin']      = true;  // Special:Userlogin after failure

/**
 * You may wish to apply special rules for captcha triggering on some namespaces.
 * $wgCaptchaTriggersOnNamespace[<namespace id>][<trigger>] forces an always on /
 * always off configuration with that trigger for the given namespace.
 * Leave unset to use the global options ($wgCaptchaTriggers).
 *
 * Shall not be used with 'createaccount' (it is not checked).
 */
$wgCaptchaTriggersOnNamespace = array();

# Example:
# $wgCaptchaTriggersOnNamespace[NS_TALK]['create'] = false; //Allow creation of talk pages without captchas.
# $wgCaptchaTriggersOnNamespace[NS_PROJECT]['edit'] = true; //Show captcha whenever editing Project pages.

/**
 * Indicate how to store per-session data required to match up the
 * internal captcha data with the editor.
 *
 * 'CaptchaSessionStore' uses PHP's session storage, which is cookie-based
 * and may fail for anons with cookies disabled.
 *
 * 'CaptchaCacheStore' uses MW's object cache (specifically, MediaWikiServices::getMainObjectStash),
 * which avoids the cookie dependency, but may be fragile depending on the cache backend.
 */
$wgCaptchaStorageClass = 'CaptchaSessionStore';

/**
 * Number of seconds a captcha session should last in the data cache
 * before expiring when managing through CaptchaCacheStore class.
 *
 * Default is a half hour.
 */
$wgCaptchaSessionExpiration = 30 * 60;

/**
 * Number of seconds after a bad login that a captcha will be shown to
 * that client on the login form to slow down password-guessing bots.
 *
 * Has no effect if 'badlogin' is disabled in $wgCaptchaTriggers or
 * if there is not a caching engine enabled.
 *
 * Default is five minutes.
 */
$wgCaptchaBadLoginExpiration = 5 * 60;

/**
 * Allow users who have confirmed their email addresses to post
 * URL links without being harassed by the captcha.
 *
 * @deprecated since 1.36
 * $wgGroupPermissions['emailconfirmed']['skipcaptcha'] = true; should be used instead.
 */
$wgAllowConfirmedEmail = false;

/**
 * Number of bad login attempts before triggering the captcha.  0 means the
 * captcha is presented on the first login.
 */
$wgCaptchaBadLoginAttempts = 3;

/**
 * Regex to whitelist URLs to known-good sites...
 * For instance:
 * $wgCaptchaWhitelist = '#^https?://([a-z0-9-]+\\.)?(wikimedia|wikipedia)\.org/#i';
 * Local admins can define a whitelist under [[MediaWiki:captcha-addurl-whitelist]]
 */
$wgCaptchaWhitelist = false;

/**
 * Additional regexes to check for. Use full regexes; can match things
 * other than URLs such as junk edits.
 *
 * If the new version matches one and the old version doesn't,
 * toss up the captcha screen.
 *
 * @fixme Add a message for local admins to add items as well.
 */
$wgCaptchaRegexes = array();