On 10/15/06, admin Yellowikis yellowikis@gmail.com wrote:
I should add the definitive version is:
#Block all external links: $wgSpamRegex = "/^[[^][]*]$/";
PY
I forgot that you can also make an ugly link using "http://fff.ooo.bar"
so:
#Block all external links: $wgSpamRegex = "/^http:|^[[^][]*]$/";
Does that $wgSpamRegex work?
With it in LocalSettings on r17002, I could not create this wiki page: ----------------------- [http://badsite.com/] -----------------------
However I could create this: -----------------------
[http://badsite.com/] ----------------------- ... and then MediaWiki strips out the blank line, giving exactly the same end result.
Here's another article I could create: ----------------------- ht<!-- -->tp://foo.bar/ https://foo.bar [[[http://fake.com/] {{Some_Template_That_Makes_Passed_Arg_Into_A_Link|foobar.com}} http://fake.com/ [http://test.com test] -----------------------
All the best, Nick.