What do I mean by "cloaking affiliate links"? This is the practice of taking an often lengthy URL, and disguising it with a masking URL that is both simpler and more attractive.
This affiliate link from Commission Junction:
can be changed into the masking URL:
http://mywebsite.com/myproduct.htm
It has been said that Google does not like affiliate links. I have personal experience with a possible incidence of this. Google actually banned one of my affiliate sites, and wouldn't cite a specific reason for doing so. So I made a lot of changes, including removing most of the affiliate links, and cloaking the rest.
I had just about given up, when 15 months later, I discovered quite by accident that the website had been allowed back on the Google search pages. But they have refused to cite a reason for either the deindexing or the reindexing, so I don't actually know which changes I made to the site were effective.
Update, Feb 01, 2012: I am in the process of writing an Ezine Article about methods of cloaking links. In preparation, I tested all of the methods, in both Internet Explorer 9 and Firefox 5. I discovered several things that had changed since I wrote this article, so this section has been completely revised.
All of the methods below show the cloaked link in the status bar of your web page on hover, which is after all what "cloaking" means. But all of the methods but the last two have the disadvantage of showing your uncloaked affiliate link in the address bar of the destination web page. This makes it easy for an unethical person to substitute his own affiliate code, and steal your commission.
Meta Refresh: In this method, you add a META tag to the <head> section of your link-cloaking file, 'myproduct.htm', which tells the browser to go to the affiliate page.
<meta http-equiv="refresh" content="1; url=YOUR AFFILIATE LINK" />
Javascript Redirect: This method is much like #1. It uses a script in 'myproduct.htm' to tell the browser to go to the affiliate page.
<script type=”text/javascript”>window.location = “YOUR AFFILIATE LINK”</script>
This technique will fail, of course, if the viewer has blocked Javascript, although this practice is rare nowadays.
PHP Redirect: Like #2, but your 'myproduct' file must end in '.php', and the following code should be the only content of the file ( NO <head> tag! )
<?php header(“Location: http://www.the-link-to-redirect-to.com”); ?>
If you don't have PHP available on your server, this method cannot be used.
.htaccess Redirect: This method requires you to add just one line of code to your .htaccess file for each affiliate link. It is extremely easy to use this cloaking technique, since you don't need a seperate 'myproduct.htm' file for each link - you can put them all in a single .htaccess file that you probably already have on your site.
Redirect /myproduct.htm YOUR AFFILIATE LINK
Be sure to make a backup copy of your .htaccess file just in case you mess something up so badly that your website disapppears! ( Note - Dec 19, 2011 - That just happened to me. I mistyped 'Recirect", and I got "File not found" on every one of my webpages! ) Two things to be careful of: 1) there must be a space between the two URLs, and 2) you must use the ENTIRE affiliate link, including the 'http' part.
URL Shortening: You can use one of the many link shorteners available today, such as Tinyurl, which would result in a cloaking link like:
http://tinyurl.com/84vkpm3
Not only does this method not require a 'myproduct' file, but it's the only way I know that you can use a cloaked link in an email, or on another website, such as Twitter. In fact, its original purpose was to shorten links to help meet Twitter's 140 character limit. However, it isn't very pretty or very desciptive of where the link is going. And this method has some security problems, as evidenced by Bit.ly's Warning that comes up whenever you use one of their short links.
Frame or Iframe Enclosing Redirect Code: If you enclose your Javascript Redirect code in a frame or iframe on your webpage, then your affiliate link is not EVER shown in the address bar. This is because the destination web page is actually shown on your own web page ( inside the frame ).
However, that advantage is completely wiped out by the big disadvantage of using this method: In order for you to get credit for any sales, your affiliate site must set a cookie on the user's computer. But only third-party cookies can be set from within a frame, and most people's browsers have these turned off by default. So, without you even being aware of it, you will lose most of your commissions!
Base64 Code: This code is something that not many people can create themselves. Here is a sample:
eval(unescape('%77%69%6e%64%6f%77%2e%73 ...
Fortunately, there is an easy-to-use program available to encode the link for us. ( See my sister website, ScriptsForYourWebsite.com, for more information about this software, how it works, and how to use it. ) You can download this FREE LINK-HIDING PROGRAM by clicking here: Link Cloaker. This method, although not as easy to use as others, has the tremendous advantage of allowing you to redirect the user to any page on the destination website, and still get credit for the sale.
To summarize, I can only recommend the last method. It's sole disadvantage it that it is not as easy to use as the other methods. However, that's a small price to pay for completely masking your affiliate information from all prying eyes. And, to emphasize it, it's the only method where you can redirect the user to whatever page you want on the affiliate site.
There are currently no comments to display.
Click here to add a comment
Rate this page: