I should add the definitive version is:
#Block all external links: $wgSpamRegex = "/^[[^][]*]$/";
PY
On 10/15/06, admin Yellowikis yellowikis@gmail.com wrote:
Thanks DaB - that works fine.
Phil: I'll have a look at the diff links - but i suspect they are not managed by LocalSettings
Angela: I will install the blacklist extension, it is clearly the right thing to do. But right now I just need a quick fix for a test wiki i am working on.
PY
On 10/15/06, DaB. wp@daniel.baur4.info wrote:
Hello,
something like this:
#Block external links: $wgSpamRegex = "/[*.*]$/";
But I can't get it to work...
You realise that this regexp would match ALL links, including internal ones, images etc.?
Try "^[[^][]*]$". I test it on the shell, no garantie ;).
Sincerly, DaB.
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
-- Yellowikis is to Yellow Pages, as Wikipedia is to The Encyclopedia Britannica