Extension:ExternalLinkConfirm
WikiTeq provides official support for MediaWiki LTS releases only. It may work with other MediaWiki releases. |
![]() 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 |
Maintainer(s) | WikiTeq team |
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. |
MediaWiki | 1.35+ |
License | GNU General Public License 2.0 or later |
Download | |
|
|
Quarterly downloads | 5 (Ranked 161st) |
Translate the ExternalLinkConfirm extension if it is available at translatewiki.net | |
Issues | Open tasks · Report a bug |
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[edit]
- Download and place the file(s) in a directory called
ExternalLinkConfirm
in yourextensions/
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.
Configuration[edit]
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
