Saturday, November 15, 2008

Technique to hide affiliate links!

+ It is sometimes necessary to hide, or cloak, your affiliate links to stop people stealing your commission or bypassing the affiliate link and going straight to the main site. Affiliate link hijacking is a big problem, some people will change your affiliate URL to their own before purchasing a product so they themselves get paid the commission giving them a discounted product. This problem is far worse if you are promoting to the affiliate marketers crowd as they can spot an affiliate link from 100 yards away! They will just replace your affiliate ID with their own and "hijack" your commissions.
+ Some people just simply hate the thought that you will make a commission from their purchase and will just cut off your affiliate ID at the end of the URL. If you don't take steps to try and hide your affiliate links from hijackers, then you will carry on losing commissions.
+ So the other advantages to hiding affiliate links are that if people see your link in a post or email, they just won’t click it just because of the affiliate connection, hiding links WILL increase your CTR (Click Through Ratio)

How can we hide affiliate links
1. Use shorter link:
The quickest way to hide your links is to use a company like which is free to use and turns links like into something like this, however this is only really a quick fix and is better to be used for mailing your opt-in lists, the people who trust you, people who don’t know you can’t tell where that link is going to take them, it could be a porn site for all they know, you will get better click through rates using another method.
IMPORTANT: Some link cloaking techniques may prevent some sites from dropping tracking cookies into your visitors computer which means you may not get credit for that referral. Check all links to make sure they work correctly, if you are still unsure use something like Power Link Generator to be on the safe side.

2. Using a redirect php script
This is an easy technique to implement, all you have to do is create a single php file that includes a small piece of code, so if you are trying to promote www-yourID.merchID.hop.clickbank-net then you way create a blank page called, say, http://discounts.php that just contains the redirect script, so the actual link you promote would be www-yoursite-com/discounts.
Unfortunately this technique does have one drawback, some affiliate merchant links will still be visible in the browser address bar, it works great with clickbank products.
<?php header("location: http:// www .YourUglyAffiliateLink"); ?>

3. Hide your affiliate links using a zero-frame code

This technique has a little more code than above, but it actually frames the site you are promoting.

Again, you will need your own website to use this technique but it’s just as easy to do.

The following code frames the site you are promoting making it look to the visitor as if they are still on your site, in other words, no matter which page they go to on the framed site they will only see your domain in the browser window.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns=""><head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1" />
<title>Product Title</title>
<META name="robots" content="noindex,nofollow">
</head><frameset rows="100%,*" border="0">
<frame src="http:// www .Your-Destination-Link" frameborder="0" />
<frame frameborder="0" noresize />
</frameset> document.removeEventListener('click, clickHandler, true);

4. cloaking link
Becareful with this technique or you will be banned from google search.
<a onclick="parent.location.href='http://www.Affiliate-link';
return event.returnValue=false"
href=http://www.Display-Link>Anchor Text</a>

5. Hide affiliate links using htaccess
redirect 301 /AnyNameYouLike http://YourAffiliateUrl

Just add the above line of code to your htaccess file, the /AnyNameYouLike is the directory or page you want to use for redirection, for example, if named it /dog-food your link would look like this http://www.yourdomain/dog-food which would redirect traffic to your affiliate link.

You don’t need to create any pages or directories using this technique, just add the redirection code to your htaccess file.


Msplumuniq said...

Thanks -this is very informative. I bookmarked the info in this post.

Blog Administrator said...

Thank you.