Extension:ExternalLinkConfirm

Category:Unmaintained extensions#ExternalLinkConfirm Category:Extensions without an imageCategory:Extensions with invalid or missing typeCategory:GPL licensed extensions
MediaWiki extensions manual
ExternalLinkConfirm
Release status: unmaintainedCategory:Unmaintained extensions
Description Requires the user to confirm that they want to be sent to the external site, after clicking an external link.
Author(s) Pastakhov
Latest version 1.0
Compatibility policy For every MediaWiki release that is a Long Term Support release there is a corresponding branch in the extension.Category:Extensions with long-term support release branches compatibility policy
MediaWiki 1.35+Category:Extensions with manual MediaWiki version
License GNU General Public License 2.0 or later
Download Category:Extensions in Wikimedia version control
  • $wgExternalLinkConfirmWhitelist
  • $wgExternalLinkConfirmTarget
Quarterly downloads 1 (Ranked 95th)
Translate the ExternalLinkConfirm extension if it is available at translatewiki.net
Issues Open tasks · Report a bug
Category:All extensions

The ExternalLinkConfirm extension requires users to confirm after clicking an external link, before being sent to the external site.

This extension was created for WikiWorks.

Installation

  • Download and move the extracted ExternalLinkConfirm folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ExternalLinkConfirm
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'ExternalLinkConfirm' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration

This extension has 2 configuration parameters which can be modified in LocalSettings.php.

$wgExternalLinkConfirmWhitelist
List of the sites that do not require confirmation before visiting.
Per default, no domains are whitelisted.
The domains in the whitelist can include wildcard characters (*) in place of any of the domain levels, e.g. '*.flickr.com' or 'upload.*.gov.uk'.
Example:
$wgExternalLinkConfirmWhitelist = [ '*.flickr.com', 'upload.*.gov.uk' ];
$wgExternalLinkConfirmTarget
For determining what the target will be for the external site.
Works similarly to $wgExternalLinkTarget.
Default: _self
Category:All extensions Category:BeforePageDisplay extensions Category:Extensions in Wikimedia version control Category:Extensions with invalid or missing type Category:Extensions with long-term support release branches compatibility policy Category:Extensions with manual MediaWiki version Category:Extensions without an image Category:GPL licensed extensions Category:OutputPageBodyAttributes extensions Category:Unmaintained extensions