List Info

Thread: Prevent external linking




Prevent external linking
user name
2006-04-28 16:53:45
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)" <cearlecbltech.ca>, MediaWiki announcements and site
admin list <mediawiki-lWikimedia.org>
> Gesendet: 28.04.06 18:44:04
> An: <mediawiki-lWikimedia.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-lWikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l


_______________________________________________
MediaWiki-l mailing list
MediaWiki-lWikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )