Jump to content

Extension:TrustedXFF/zh

From mediawiki.org
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.43
许可协议 GNU通用公眾授權條款2.0或更新版本
下載
示例 mediawiki.org
季度下載量 2 (Ranked 131st)
正在使用的公开wiki数 868 (Ranked 275th)
前往translatewiki.net翻譯TrustedXFF扩展
問題 开启的任务 · 报告错误

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


  • 下载文件,并将解压后的TrustedXFF文件夹移动到extensions/目录中。
    开发者和代码贡献人员应从Git安装扩展,输入:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/TrustedXFF
  • 将下列代码放置在您的LocalSettings.php 的底部:
    wfLoadExtension( 'TrustedXFF' );
    
  • Yes 完成 – 在您的wiki上导航至Special:Version,以验证已成功安装扩展。


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