Thread:Project:Support desk/Block all external links except those in a specific whitelist (2)/reply (4)

Two more questions and I'm done. Thanks Jasper!

ie: require_once( "$IP/extensions/SpamBlacklist/SpamBlacklist.php" ); $wgSpamBlacklistFiles = array(  "Spam blacklist",   "\b.*\.(com|net|org|tk|co|cc|nl|cz|cn|fr|de|biz|int)" );

Would that work correctly?

And to whitelist google.com and any subdomains I would add to whitelist on MediaWiki:Spam-whitelist :


 * 1) Syntax is as follows:
 * 2)   * Everything from a "#" character to the end of the line is a comment
 * 3)   * Every non-blank line is a regex fragment which will only match hosts inside URLs

www\.google\.com

#