Jump to content

Manual:$wgDnsBlacklistUrls

From mediawiki.org
This page is a translated version of the page Manual:$wgDnsBlacklistUrls and the translation is 67% complete.
利用者権限、アクセス制御、モニタリング: $wgDnsBlacklistUrls
$wgEnableDnsBlacklist true の場合に使用する DNS ブラックリストのリスト。
導入されたバージョン:1.16.0 (r60506)
除去されたバージョン:使用中
許容される値:(文字列の配列、または配列の配列) (1.19+)
(文字列の配列) (1.16-1.18)
既定値:(see below)

詳細

$wgEnableDnsBlacklist true を設定した場合に、使用する DNS ブラックリストのリストを設定します。 この変数は $wgSorbsUrl に代わるものでした。

既定値

MediaWiki バージョン:
1.44
$wgDnsBlacklistUrls = [];

This change was backported to MediaWiki 1.39.12, 1.42.5, and 1.43.1.

MediaWiki バージョン:
1.16 – 1.43
$wgDnsBlacklistUrls = [
	'http.dnsbl.sorbs.net.',
];

MediaWiki 1.19 以降での変更点

Array values can either be a string containing the URL of the DNS blocklist, or an array containing the URL of the blocklist and an associated "key" should the blocklist require one.

$wgDnsBlacklistUrls = [
	// URL を含む文字列
    'bl.spamcop.net.',
	// URL とキーの配列。キーが必要なサービス向け
    [ 'b.barracudacentral.org.', 'mykey' ],
	// URL の配列。これは動作しますが、上記のように文字列を指定することをお勧めします
    [ 'psbl.surriel.com.' ]
];
or
$wgDnsBlacklistUrls = [
    'bl.spamcop.net.',
    'psbl.surriel.com.'
];

You can find DNSBL-format spam databases on DNSBL.info or other similar websites.

You should end the domain name with a "." to avoid searching your eventual domain search suffixes.

関連項目

  • $wgProxyList Allows to directly block an individual IP address or a list of IP addresses
  • $wgProxyWhitelist Allows to directly exempt an individual IP address or a list of IP addresses from being blocked