Revision as of 02:52, August 28, 2012

The following code was created by Daniel Robbins to provide URL Whitelist functionality for MediaWiki. This code allows you to create a page named "URLWhitelist" which contains lists of domains that users can link against. All domains not listed on the URLWhitelist page will result in a Spam Protection error when saving any edits to a page.

On the URLWhitelist page, the wikitext should contain one domain per line, and sub-paths are fine, such as this:

google.com
foo.bar.com/oni

Above, the URLWhitelist will allow http(s)://[domain.]google.com/* and http(s)://[domain.]foo.bar.com/oni[/optional-path]