Manual:$wgDnsBlacklistUrls
Appearance
| 利用者権限、アクセス制御、モニタリング: $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