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.