Archive for the Javascript Category

If you don’t know the benefits of link cloaking, then here’s a brief synopsis. It allows you to have a link displayed on your webpage, then send the user to a different link when they click on it. For example: if you have an affiliate link and didn’t want the user to know they were clicking on an affiliate link, then you could use this to encourage click-throughs, without losing the affiliate commissions. If it’s too obvious that your link is an affiliate link, people might not click on it or they might go straight to the main url of the linkBy using this script, you don’t have to worry about using PHP or anything else, as it’s completely in Javascript. Your users also don’t know that the link is cloaked, so they won’t suspect anything. Your link can be anything, for example dogtrainingonline.com (it doesn’t even have to be a real site) and when they click on the link, actually takes them to yourid.dogtraining.clickbank.com. All you have to do is place the old link and new link in the script, and it will take care of it for you. If you want to simply redirect all links to the same page, then you can very easily do that as well.

I hope that you can see the usefulness of this script, and if you can come up with any other reasons to use it, then please let me know.

Enter in the name of the link that is on the web page in the “Original Link” box (without the http://), then the name of the redirected link in the “New Link” box (with the http://). Click on Submit Link then copy the code generated below into your HTML code, anywhere between the <head> </head> tags. If you want to redirect all links on the page to the same site, then just click the “All Links On Page” checkbox, enter the new web page in the “New Link” box and click Submit Link. This will forward all links to the same page, regardless of what the original link actually is. Be careful, though, because this will affect Adsense links too. I will include a little bit of code later to allow it to skip the Adsense links.

All Links On Page
Original Link:

New Link:

    For an example of how this can help, then check out the link below. This is how the link looks in the html code.
<a href=”http://www.yahoo.com”>Yahoo!</a>
Yahoo! - Link goes to Yahoo.com. Click on the checkbox to enable the code, and then try clicking on the link again.
Enable Link Redirect

Code: