Download for PHP  R515 (beta)
Welcome » Extensions » Extension list » LinkProxy
Expand

Input document

.

Upload document:

LinkProxy

Extension list »

See also LinkStat.

Changes all (or only external) links so they will go through a specified URL. Useful when anonymizing external links or just for some gateway/statistic script.

It can either be called manually or, if set in settings will autoload for all documents.
By default autoloading is inactive and only external URLs are proxied.

Examples

{{LinkProxy http://an.on/?$&from=us}}
{{LinkProxy go.php?url=$&caption=Source:+@, scope=all}}
{{LinkProxy @, rel=nofollow, class=!external}}

You can combine two calls (or one call and autoload) in one document:

{{LinkProxy @, rel=nofollow, scope=external,
            class=!external proxied}}
{{LinkProxy clickmap.php?$, scope=local,
            exclude=/linkstat\.php/}}

Parameters

proxy
The proxy URL as the first argument («$» stands for URL-encoded link address, «@» – for raw, «$$» and «@@» for single «$/@» respectively);
scope
As the second argument – «external» (default), «local» or «all»;
rel
If passed, will add HTML rel= attribute;
class
If passed, will change class= attribute of the link; separate multiple classes with spaces. Classes prefixed with «!» are removed (e.g. !external), others are added unless they already exist. Default value of this is «linkproxy»;
exclude
A regular expression which will be matched against incoming URLs. If doesn’t start with "/" it gets surrounded by regexp brackets automatically (you can’t specify modificators).

Languages