User rights, access control and monitoring: $wgDnsBlacklistUrls
List of DNS blacklists to use, if $wgEnableDnsBlacklist is true.
Introduced in version:1.16.0 (r60506)
Removed in version:still in use
Allowed values:(array of strings or arrays) (1.19+)
(array of strings) (1.16-1.18)
Default value:[ 'http.dnsbl.sorbs.net.', ]

Details

Sets a list of DNS blocklists to use, if $wgEnableDnsBlacklist is set to true. This replaced $wgSorbsUrl.

Changes in 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.

Example
$wgDnsBlacklistUrls = array(
    'http.dnsbl.sorbs.net.', # <translate nowrap><!--T:10--> String containing URL</translate>
    array( 'dnsbl.httpbl.net.', 'mykey' ), # <translate nowrap><!--T:11--> Array with URL and key, for services that require a key</translate>
    array( 'dnsbl.tornevall.org.' )  # <translate nowrap><!--T:12--> Array with just URL. While this works, it is recommended that you just use a string as shown above</translate>
);
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.

See also

  • $wgProxyList Allows to directly block an individual IP address or a list of IP addresses
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.