= Plugin for Rewriting External Links = == Description == Rewrite external link location, for example, to hide referers for private sites. For example, trac link: {{{ [http://foo.bar.com outgoing site] }}} becomes in html: {{{ #!html <a class="ext-link" href="http://foo.bar.com">outgoing site</a> }}} But, ExtLinkRewriter converts it as: {{{ #!html <a class="ext-link" href="/myredirector.html?http://foo.bar.com" target="_blank">outgoing site</a> }}} Jumping outgoing site via single redirector, referers with detailed page names could be hidden. it is useful for private/secret sites; e.g. project sites in local networks. (this plugin contains simple redirectors). == Bugs/Feature Requests == Existing bugs and feature requests for ExtLinkRewriterPlugin are [report:9?COMPONENT=ExtLinkRewriterPlugin here]. If you have any issues, create a [http://trac-hacks.org/newticket?component=ExtLinkRewriterPlugin&owner=bellbind new ticket]. == Download == Download the zipped source from [download:extlinkrewriterplugin here]. == Source == You can check out ExtLinkRewriterPlugin from [http://trac-hacks.org/svn/extlinkrewriterplugin here] using Subversion, or [source:extlinkrewriterplugin browse the source] with Trac. == Install == make egg {{{ python setup.py bdist_egg }}} copy egg into your trac plugins dir. {{{ cp dist/*.egg /where/to/trac/plugins/ }}} == Example == 1. copy redirector/rediretor.html at accessible point. {{{ #!bash $ cp redirector/rediretor.html /var/www/ }}} Check redirect function at your brower, e.g. goto http://.../redirector.html?http://google.com . 2. edit conf/trac.ini for enable the plugin: {{{ [components] ExtLinkRewriter.* = enabled }}} and example options: {{{ [extlinkrewriter] format = /redrector.html?%s namespaces = http,https,ftp target = _blank }}} == Recent Changes == [[ChangeLog(extlinkrewriterplugin, 3)]] == Author/Contributors == '''Author:''' [wiki:bellbind] [[BR]] '''Contributors:'''