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

I guess you could use Extension:SpamBlacklist, add a universal regex to the blacklist, and then add exceptions to the whitelist.