Manual:$wgBrowserBlackList/ja

From MediaWiki.org

< Manual:$wgBrowserBlackList
Jump to: navigation, search
ユーザーエージェント: $wgBrowserBlackList
ユニコードに準拠していないブラウザのブラックリスト。
導入されたバージョン: 1.4.0
削除されたバージョン: 使用中
可能な値: (正規表現の配列)
デフォルトの値: (下記をご覧下さい)

他の設定: アルファベット順 | 機能順


Contents

[edit] 詳細

ユニコードに準拠していないブラウザのブラックリスト。問題が多いブラウザとマッチする正規表現 : "/regexp/" のリストを格納しています。ブラウザのユーザーエージェントがそのような 正規表現 にマッチする場合、編集するときに "safemode" フィールドが使用されます。 (safemode アイテムについての詳細は Manual:Parameters to index.php#Optional additional data をご覧下さい)。

[edit] デフォルト値

[edit] 現在のバージョン

1.7.0 より若干の後の MW のバーションからは、この設定は下記のデフォルト値でした。:

$wgBrowserBlackList = array(
    /**
     * Netscape 2-4 detection
     * The minor version may contain strings such as "Gold" or "SGoldC-SGI"
     * Lots of non-netscape user agents have "compatible", so it's useful to check for that
     * with a negative assertion. The [UIN] identifier specifies the level of security 
     * in a Netscape/Mozilla browser, checking for it rules out a number of fakers. 
     * The language string is unreliable, it is missing on NS4 Mac.
     * 
     * Reference: http://www.psychedelix.com/agents/index.shtml
     */
    '/^Mozilla\/2\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
    '/^Mozilla\/3\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
    '/^Mozilla\/4\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
 
    /**
     * MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH>
     *
     * Known useragents:
     * - Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
     * - Mozilla/4.0 (compatible; MSIE 5.15; Mac_PowerPC)
     * - Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
     * - [...]
     *
     * @link http://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
     * @link http://en.wikipedia.org/wiki/Template%3AOS9
     */
    '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/',
 
    /**
     * Google wireless transcoder, seems to eat a lot of chars alive
     * http://it.wikipedia.org/w/index.php?title=Luciano_Ligabue&diff=prev&oldid=8857361
     */
    '/^Mozilla\/4\.0 \(compatible; MSIE 6.0; Windows NT 5.0; Google Wireless Transcoder;\)/'
);

これと以前のバージョンとの変更は:

  • Netscape 2-4 検出のための正規表現の変更がありました。
  • Google Wireless Transcoder regex の正規表現が追加がありました。

[edit] 1.7.0

1.7.0 から現在のバージョンに変更されるまでの間 (我々はこれがいつの事であったのか把握できていない...), この設定は下記のデフォルト値でした。:

$wgBrowserBlackList = array(
	/**
	 * Netscape 2-4 detection
	 * The minor version may contain strings such as "Gold" or "SGoldC-SGI"
	 * Lots of non-netscape user agents have "compatible", so it's useful to check for that
	 * with a negative assertion. The [UIN] identifier specifies the level of security 
	 * in a Netscape/Mozilla browser, checking for it rules out a number of fakers. 
	 * The language string is unreliable, it is missing on NS4 Mac.
	 * 
	 * Reference: http://www.psychedelix.com/agents/index.shtml
	 */
	'/^Mozilla\/2\.[^ ]+ .*?\((?!compatible).*; [UIN]/',
	'/^Mozilla\/3\.[^ ]+ .*?\((?!compatible).*; [UIN]/',
	'/^Mozilla\/4\.[^ ]+ .*?\((?!compatible).*; [UIN]/',
 
	/**
         * MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH>
	 *
	 * Known useragents:
	 * - Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
	 * - Mozilla/4.0 (compatible; MSIE 5.15; Mac_PowerPC)
	 * - Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
	 * - [...]
	 *
	 * @link http://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
	 * @link http://en.wikipedia.org/wiki/Template%3AOS9
	 */
	'/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/'
);

[edit] 1.7.0 未満

1.4.1 から 1.6.10 迄、この設定は下記のデフォルト値でした。:

$wgBrowserBlackList = array(
    "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/",
    /**
     * MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH>
     *
     * Known useragents:
     * - Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
     * - Mozilla/4.0 (compatible; MSIE 5.15; Mac_PowerPC)
     * - Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
     * - [...]
     *
     * @link http://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
     * @link http://en.wikipedia.org/wiki/Template%3AOS9
     */
    "/Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/"
    );

[edit] 1.4.1 未満

1.4.0 において、 この設定は下記のデフォルト値でした。:

$wgBrowserBlackList = array(
        "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/"
        // FIXME: Add some accurate, true things here
        );