= Plugin for Rewriting External Link URLs =
== Description ==
Rewrite external link location, to hide referers for private sites, to use social bookmark sites, and so on.
For example, trac link:
{{{
[http://foo.bar.com outgoing site]
}}}
becomes in html:
{{{
outgoing site
}}}
But, !ExtLinkRewriter converts it as:
{{{
outgoing site
}}}
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).
Or, using bookmark site; del.icio.us, at trac.ini you can specify the format:
{{{
format = http://del.icio.us/url?url=%s
}}}
== 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 the egg package
{{{
python setup.py bdist_egg
}}}
copy egg into your trac plugins dir.
{{{
cp dist/ExtLinkRewriter*.egg /where/to/trac/plugins/
}}}
== Example ==
=== Reditrector ===
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
}}}
=== Social Bookmark ===
del.icio.us
{{{
[extlinkrewriter]
format = http://del.icio.us/url?url=%s
}}}
hatena bookmark
{{{
[extlinkrewriter]
format = http://b.hatena.ne.jp/entry/%s
}}}
== Recent Changes ==
[[ChangeLog(extlinkrewriterplugin, 3)]]
== Author/Contributors ==
'''Author:''' [wiki:bellbind] [[BR]]
'''Contributors:'''