Extension:TrustedXFF - MediaWiki
Jump to content
From mediawiki.org
Translate this page
Languages:
Türkçe
polski
čeština
русский
中文
MediaWiki extensions manual
TrustedXFF
Release status:
stable
Description
Handling of trusted proxy addresses (XFF)
Author(s)
Tim Starling
talk
Latest version
2.0.0
MediaWiki
>= 1.46
Hooks used
IsTrustedProxy
Licence
GNU General Public License 2.0 or later
Download extension
Git
Browse repository
GitHub
Gerrit code review
Git commit log
Download source tarball
Example
mediawiki.org
Translate the TrustedXFF extension
if it is available at translatewiki.net
Issues
Open tasks
Report a bug
The
TrustedXFF
extension maintains a list of trusted hosts in a file in a PHP array format.
For details, see
meta:XFF project
The file can be generated using the generate.php maintenance script.
Installation
and move the extracted
TrustedXFF
folder to your
extensions/
directory.
Developers and code contributors should install the extension
from Git
instead, using:
cd
extensions/
git
clone
Add the following code at the bottom of your
LocalSettings.php
file:
wfLoadExtension
'TrustedXFF'
);
Done
– Navigate to
Special:Version
on your wiki to verify that the extension is successfully installed.
Limitations
Useless where
X-Forwarded-For
is unavailable. As of 2019, many wikis force
HTTPS
for all things. Any manipulation with headers on a proxy compromises HTTPs server authentication unless the proxy possesses an SSL certificate authoritative for the wiki in question. It makes the extension far less useful nowadays than it was originally envisaged.
See also
Extension:CheckUser
Manual:$wgApplyIpBlocksToXff
$wgGlobalBlockingBlockXFF
This extension is being used on one or more
Wikimedia projects
. This probably means that the extension is stable and works well enough to be used by such high-traffic websites. Look for this extension's name in Wikimedia's
CommonSettings.php
and
InitialiseSettings.php
configuration files to see where it's installed. A full list of the extensions installed on a particular wiki can be seen on the wiki's
Special:Version
page.
Retrieved from "
Categories
Stable extensions
Extensions with invalid or missing type
IsTrustedProxy extensions
GPL licensed extensions
Extensions in Wikimedia version control
All extensions
Extensions used on Wikimedia
Hidden categories:
Extensions without an image
Extensions without a compatibility policy
Extension
TrustedXFF
Add topic
US