Extension:ExternalLinkConfirm

Other languages:
English • ‎Türkçe • ‎العربية • ‎বাংলা • ‎日本語
MediaWiki extensions manual
OOjs UI icon advanced.svg
ExternalLinkConfirm
Release status: stable
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
MediaWiki 1.35.0
License GNU General Public License 2.0 or later
Download

  • $wgExternalLinkConfirmWhitelist
  • $wgExternalLinkConfirmTarget
Translate the ExternalLinkConfirm extension if it is available at translatewiki.net

Check usage and version matrix.

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.

InstallationEdit

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

ConfigurationEdit

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

  This extension is professionally maintained by the WikiTeq team.