Extension:TrustedXFF

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.39.0
ライセンス GNU 一般公衆利用許諾書 2.0 以降
ダウンロード
mediawiki.org
Quarterly downloads 4 (Ranked 174th)
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という名前のディレクトリ内に配置します。
  • 以下のコードを LocalSettings.php の末尾に追加します:
    wfLoadExtension( 'TrustedXFF' );
    
  •   完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。

MediaWiki 1.28以前を稼働させている利用者へ:

上記の手順では、wfLoadExtension()を使用してこの拡張機能をインストールする新しい方法を記載しています。 この拡張機能をこれらの過去のバージョン (MediaWiki 1.28以前) にインストールする必要がある場合は、wfLoadExtension( 'TrustedXFF' );の代わりに以下を使用する必要があります:

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


制限

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


関連項目