Extension:TrustedXFF/zh

This page is a translated version of the page Extension:TrustedXFF and the translation is 0% complete.
MediaWiki的扩展的手冊
TrustedXFF
發佈狀態: 穩定版本
描述 Handling of trusted proxy addresses (XFF)
作者 Tim Starling讨论
最新版本 2.0.0
MediaWiki >= 1.39.0
许可协议 GNU通用公眾授權條款2.0或更新版本
下載
示例 mediawiki.org
季度下載量 4 (Ranked 174th)
公開的wiki使用 868 (Ranked 275th)
翻譯TrustedXFF的扩展,若在translatewiki.net可用
問題 尚未完成的工作 · 报告錯誤

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


  • 下载文件,并将其放置在您extensions/文件夹中的TrustedXFF目录内。
  • 将下列代码放置在您的LocalSettings.php 的底部:
    wfLoadExtension( 'TrustedXFF' );
    
  • Yes 完成 – 在您的wiki上导航至Special:Version,以验证已成功安装扩展。

致使用MediaWiki 1.28或更早版本的用户:

上面的说明介绍的是安装此扩展的新方法,它使用wfLoadExtension()。 如果您需要在早期版本(MediaWiki 1.28和更早版本)中安装此扩展,而不是wfLoadExtension( 'TrustedXFF' );,您需要使用:

require_once "$IP/extensions/TrustedXFF/TrustedXFF.php";


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