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.45
许可协议 GNU通用公眾授權條款2.0或更新版本
下載
示例 mediawiki.org
前往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