From b921ebcb7f85dd356122475f75e6214fc1d0153a Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Mon, 15 Aug 2011 05:12:56 +0000 Subject: [PATCH] * Follow-up r92673: add documentation on how to use $wgDnsBlacklistUrls to DefaultSettings (lifted from the Manual page on mediawiki.org) --- includes/DefaultSettings.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 240ec13755..b5d6701023 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -3681,7 +3681,20 @@ $wgEnableDnsBlacklist = false; $wgEnableSorbs = false; /** - * List of DNS blacklists to use, if $wgEnableDnsBlacklist is true + * List of DNS blacklists to use, if $wgEnableDnsBlacklist is true. This is an + * array of either a URL or an array with the URL and a key (should the blacklist + * require a key). For example: + * @code + * $wgDnsBlacklistUrls = array( + * // String containing URL + * 'http.dnsbl.sorbs.net', + * // Array with URL and key, for services that require a key + * array( 'dnsbl.httpbl.net', 'mykey' ), + * // Array with just the URL. While this works, it is recommended that you + * // just use a string as shown above + * array( 'opm.tornevall.org' ) + * ); + * @endcode * @since 1.16 */ $wgDnsBlacklistUrls = array( 'http.dnsbl.sorbs.net.' ); -- 2.20.1