Extension:TrustedXFF

From mediawiki.org
This page is a translated version of the page Extension:TrustedXFF and the translation is 42% complete.
MediaWiki 拡張機能マニュアル
TrustedXFF
リリースの状態: 安定
説明 Handling of trusted proxy addresses (XFF)
作者 Tim Starlingトーク
最新バージョン 2.0.0
MediaWiki >= 1.42
ライセンス GNU 一般公衆利用許諾書 2.0 以降
ダウンロード
mediawiki.org
Quarterly downloads 3 (Ranked 141st)
Public wikis using 868 (Ranked 275th)
translatewiki.net で翻訳を利用できる場合は、TrustedXFF 拡張機能の翻訳にご協力ください
問題点 未解決のタスク · バグを報告

The TrustedXFF extension maintains a list of trusted hosts in a file in a PHP array format. 詳細は、meta:XFF project を参照してください。

The file can be generated using the generate.php maintenance script.

インストール

  • ダウンロードして、ファイルをextensions/フォルダー内のTrustedXFFという名前のディレクトリ内に配置します。
    開発者とコード寄稿者は、上記の代わりに以下を使用してGitからインストールします:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/TrustedXFF
  • 以下のコードを LocalSettings.php ファイルの末尾に追加します:
    wfLoadExtension( 'TrustedXFF' );
    
  • Yes 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。


制限

  • 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.


関連項目