Manual:$wgDnsBlacklistUrls

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

詳細

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

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 = array(
    'http.dnsbl.sorbs.net.', # URL を含む文字列
    array( 'dnsbl.httpbl.net.', 'mykey' ), # URL とキーの配列。キーが必要なサービス向け
    array( 'dnsbl.tornevall.org.' )  # URL の配列。これは動作しますが、上記のように文字列を指定することをお勧めします
);
or
$wgDnsBlacklistUrls = array( 'xbl.spamhaus.org.', 'dnsbl.tornevall.org.', 'spam.dnsbl.sorbs.net.', 'rbl.dnsbl.im.', 'noptr.spamrats.com.', 'all.s5h.net.', 'z.mailspike.net.' );

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