[Mediawiki-l] Prevent external linking

Jimmy Collins Jimmy.Collins at web.de
Fri Apr 28 16:53:45 UTC 2006


Hi Chris,

maybe you can use wgUrlProperties:

$wgUrlProtocols = array(
        'http://',
        'https://',
        'ftp://',
        'irc://',
        'gopher://',
        'telnet://', // Well if we're going to support the above.. -ævar
        'nntp://', // @bug 3808 RFC 1738
        'worldwind://',
        'mailto:',
        'news:'
);

Remove http/https and try... :-)

Cheers,
Jimmy

> -----Ursprüngliche Nachricht-----
> Von: "Chris Earle (CBL)" <cearle at cbltech.ca>, MediaWiki announcements and site admin list <mediawiki-l at Wikimedia.org>
> Gesendet: 28.04.06 18:44:04
> An: <mediawiki-l at Wikimedia.org>
> Betreff: [Mediawiki-l] Prevent external linking


> Hey all,
> 
> I want to prevent external links from being created in my wiki -- so I want
> to turn off the parser's creation of external links from text like
> 'http://....', and I suppose turn off stuff within  [...]
> 
> Is there a way I can do this without modifying includes/Linker.php (>1.5)?
> I don't really mind doing that, but you know, would be nice if there was a
> $wg config variable or something....
> 
> 
> Thanks for any suggestions
> 
> 
> --
> Chris Earle
> 
> 
> -- 
> This message has been scanned for viruses and dangerous content by
> MailScanner, and is believed to be clean.
> 
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l





More information about the MediaWiki-l mailing list