wiki:ExtLinkRewriterPlugin

Version 1 (modified by bellbind, 17 years ago) (diff)

New hack ExtLinkRewriterPlugin, created by bellbind

Plugin for Rewtiting 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:

<a class="ext-link" href="http://foo.bar.com">outgoing site</a>

But, ExtLinkRewriter converts it as:

<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; i.e. project sites in local networks. (this plugin contains simple redirectors).

Bugs/Feature Requests

Existing bugs and feature requests for ExtLinkRewriterPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from [download:extlinkrewriterplugin here].

Source

You can check out ExtLinkRewriterPlugin from here using Subversion, or browse the source with Trac.

Example

  1. copy redirector/rediretor.html at accessible point.
    $ cp redirector/rediretor.html /var/www/
    
  1. 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

4051 by bellbind on 2008-07-22 05:59:23
make compliant with trac 0.11
2186 by bellbind on 2007-04-20 03:14:11
ExtLinkRewriterPlugin:

change default rewrite format to send del.icio.us

2183 by bellbind on 2007-04-19 18:55:10
ExtLinkRewriterPlugin:

add site info in README.txt

(more)

Author/Contributors

Author: bellbind
Contributors: