
In my previous article, Affiliate Hide and Seek, I explained why it was important to hide your affiliate links, the main reason being loosing money, as apparently there are people who would change the user-id of the link to theirs or remove it altogether.
So, as promised, I’ve compiled a small how-to on hiding your affiliate links, along with an overview of the available options.
Edit (04/02/09): I’ve written a Double Meta Refresh white paper that is available for download here. Double Meta Refresh is a technique used to hide your Landing Page from the merchant.
Two services that I know being used by some affiliate marketeers:
They work by replacing the long affiliate link with a short tinyurl.com/12345, or urlfreeze.com/12345 accordingly.
Whilst efficient at first glance, you have to keep in mind the following:
So, when using this we are scaring off the beginner, and aren’t doing anything to protect against the savvy. Therefore I wouldn’t recommend using those.
It is possible to insert a piece of code into your page’s html, that will simply substitute the affiliate link that is presented in your status bar when the mouse is hovered on the link, with a text of your liking. It is useful when you want to display the affiliate’s direct url: (the green text is what’s presented in the status bar):
<a onMouseOver=’window.status=”http://www.affiliate.com/“;
return true’ onMouseOut=’window.status=”Done”;
return true’ href=”http://www.affiliate.com/?user_id=12345″ mce_href=”http://www.affiliate.com/?user_id=12345″>
http://www.affiliate.com/</a>
However, keep in mind the following:
By using this simple technique you can effectively redirect from your site to another.
First, create a file, for example yourfile.php, and insert the following code:
<?php
header( ‘Location: http://www.affiliate.com/?user-id=12345 ) ;
?>
Upload this file to your server’s public_html directory, or to a directory within public_html you’ll create, such as yourdirectory.
Now, when the url is www.yoursite.com/yourdirectory/yourfile.php, the user is redirected to your affiliate url.
USEFUL TIP: If you name your file index.php and place it inside yourdirectory then the url will only have to be www.yoursite.com/yourdirectory to be redirected.
This is why I love WordPress so much. It has a great community and a plugin for every occasion.

This redirection plugin will redirect your urls, and do much more than that. Watch the video and read the description on their site to get a glimpse of what it can do.
This is what I currently use for my redirections, and enjoy every minute of it. It offers me an easy way to make redirection links, it has a log where I can keep track of all the activity, and a handy 404 errors’ log which already exposed some broken links on my blog.
This is only a fraction of its capabilities, it offers so much more. Oooooh, how exciting!…
So, now you know the what’s and how’s of affiliate link hiding.
The most important part of it is enjoy what you’re doing.
- Alex
Technorati Tags: hiding affiliate links, affiliate url, wordpress plugin, php redirect, javascript, tinyurl, urlfreeze
adsense advertising adwords affiliate affiliate challenge affiliate marketing article blog blogging business comment domain entrecard entrepreneur free ebook godaddy google google analytics guru hosting hostmonster internet marketing link making making money making money online money money online online ppc ppc coach PPC Marketing prizes problogger program property published readers registrar rss seo sitehoppin traffic visitors wordpress
WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.
Alex.
I am not sure about using a 301 redirect for hiding affiliate links. I am not sure about the SEO implications. Redirecting affiliate URLs the way you describe may be considered “cloaking”. As I said I am not sure on this.
The use of the PHP method seems to be the preferred method. However, when using the PHP method you should block the subdirectory from search engines via the robots.txt file. This way you are compliant with Google’s “nofollow” policies on paid links. Google seems to view affiliate links as paid links.
Beau
beaufla.stumbleuppon.com
Thanks for giving useful tips about hiding the affiliate links… This will be very useful for me indeed..
Top 10 List’s last blog post..Top 10 brain damaging habits
Beau,
Thanks for pointing me to this issue. I never thought about ckecking the SEO implications of a 301 redirect, or any other for that matter.
I will have to do some research about this..
As for blocking SE’s by robots.txt, makes sense. You are paid for the link, although indirectly.
Nice post Alex.
By the way, the comment [by Chris Beckett] on this blog post is SPAM!
If you didn’t, check out this post of mine about Comment Spam Getting Smarter than it ever was!
Cheers.
Abhinav,
Oh…………………………… I deleted the comment.
Do I feel stupid…
I thought that comment looked familiar from someplace. I’ve even written a reply to that comment, as you probably noticed! Man, his site is really good with useful advice and everything!
@Abhinav Sood: I am sure you do not mean that my comment is spam. If you are going to mark a comment as spam you should do it by the site name used for the comment. this way it is totally clear who you are accusing of spamming. So there won’t be any misunderstanding by readers that come by after the spam comment is removed.
You should really watch how you sling that accusation around.
Beau Hooks
beaufla.stumbleupon.com
@Abhinav Sood: Are you accusing my blog of having spam links? I realize I mistyped my own URL and my StumbleUpon handle but it was 4AM my time. I had not had my first cup of coffee yet.
Your article on Spam getting smarter had some great observations but you forgot one very very important point. How to verify that a comment is spam.
@Alex: Sorry! I shouldn’t rant on your blog. But, being accused of spamming is a hard nut to swallow.
Beau Hooks
TzuVelli’s last blog post..14 Lessons Learned From A Nearly Failed Blog Launch
Beau,
Abhinav did not mean your comment. I have deleted that comment, as you see in my reply to Abhinav, and now I see that maybe it was a mistake. I should have left it there so there would be no doubt that your comment is okay.
You are right. When making such accusations one must refer to the comment by site or user name.
Let me do a little editing…
Cheers,
Alex.
Thanks Alex
I could not remember if I was the first commenter or not. Anyway, thanks.
TzuVelli’s last blog post..14 Lessons Learned From A Nearly Failed Blog Launch
Hey Alex!
:D and was actually looking at this same thing tonight, wanting to add the bit about adding nofollow in the php bit, when reading your post but Beau was faster than me … anyways, going to check out the plugin, thanks!
I love plugins
Mirjam’s last blog post..Sales Tactics and Free Reports
Hi Mirjam,
I’ve done some Googling and it appears that, indeed, a nofollow would have been appropriate.
Don’t know how to do this yet in this plugin.
(joke)
Back to PHP? Naaa…. this plugin is too convenient.
PR0 is here to stay
Bye for now.
This is a very useful post Alex, and I’m surprised you didn’t use the opportunity to drop an affiliate link to a paid link cloaker
Caroline Middlebrook’s last blog post..A Tour of the Warrior Forum
Hi Caroline,
It is nice to see you on my blog.
I didn’t try any cloakers myself, so I wouldn’t know what to say about any of them.
Which would I pick? The one that pays the most? I’m not that greedy…
Couldn’t you also implement the following javascript with the tags formatted as below? Also, How would you suspect Google might see this method?
A Masked Link
Oh, silly me. I tried to add Javascript to the comment. The comment parser ate my post….I’ve expanded on what I was trying to say at http://askwayne.net/blogs/dotnet/archive/2008/03/04/Masking-Url_2700_s-with-Javascript.aspx
Sorry for any confusion.
Hi Wayne,
1) The # in the status bar would turn a warning light for me as a user.
2) See my opinion on JavaScript in the article. I would rather use PHP or a plugin.
Thanks for dropping by.
Wanting to stay at PR0? I´m joining you as it seems!
:D
ps. If you are into plugins… you might want to try the “yet another threaded comment plug”
Mirjam’s last blog post..Dilemma of a Blogger Follow Up
Thats a nice tip. Has anyone seen an increase due to using these tactics?
Mirjam,
I’ve tried to install this plugin, but unfortunately it messed up how my blog looked on IE6.
Oh…., now that I mention it, maybe it’s what you’re having, although my posts didn’t disappear completely.
Anyway, it was reported and I was waiting for a fix, but then got busy and forgot all about it. I will check it out. Thanks.
My main blog got slapped with the infamous G slap, it was a 4, and is now a ZERO. But let me get to my point, i have been looking for a wp aff plugin, and i think your referral might be the one. Atleast it looks simple.
So i take it, since my blog is at ZERO, i shouldnt have to worry about this redirect situation. Yes?
Missy’s last blog post..Agave Cookie from Bella’s
Hey Missy,
Oh my… 4 to nill… what on earth did you do to deserve that slap?
If you wish to Google reconsider its decision, there are ways to do it, you know? You have to rethink what is important to you and make your decisions accordingly. Maybe that plugin is not for you, at least until I can figure out how to add a nofollow and noindex to its redirects.
Hey, Alex:
I appreciate your honesty, i won’t use the plugin.
In fact, i’m getting weary of plugins in general, because apparently there are all sorts of implications (on some) that i’m completely unaware of. Such as this one with the nofollow, etc.
And usually the comments section of a plugin page, is where i find out about odd stuff. So i always make it a point to read the comments. I hate to ruin my blog. (further)
Missy.
Missy’s last blog post..Agave Cookie from Bella’s
Hi Missy,
The plug-in you are looking for is called WP Affiliate Pro. It is a paid plugin. But, well worth the money. It will be able to manage all your affilliate links and make them Google compliant. I wrote a post on it.
http://tzuvelli.com/manage-your-affiliate-links-easily/
TzuVelli’s last blog post..Manage Affiliate Links With WordPress Affiliate Pro
Beau, (TzuVelli)
I asked on Urban Giraffe (the redirection plugin developers) forum about noindex and nofollow in their plugin, and their answer pointed me in the right direction.
You could just the nofollow and noindex to the link you’re using for redirection, e.g.: yoursite.com/product
That would make Google happy…
Missy, this should do the trick for you.
Great post, I like the php method of redirecting
Learn Affiliate Marketing’s last blog post..Small Sites, Big Money eBook Review
Excellent use of php – I normally just used html redirects or subdomain redirects. I like the idea of a wordpress php redirect plugin, will check it out.
Thanks!
Barbara
Barbara Ling (aka Owlbert)’s last blog post..Hat Tip to Darren Rowse, his commentors and Chris Brogan
My favourite link hiding technique has been the php redirection, easy to setup and maintain too
Check out http://www.addme.com/linkcloaker.htm
Vineet Aggarwal
http://www.ILoveExtraCash.com
http://www.URLPOT.Com is another great way to hide your affiliate links. i.e http://www.URLPOT.Com/Your Name
Yeah – I’m kind of glad taht I read this because my business partner keeps on talking about cloaking with regards to affiliate links, and I keep saying that I dont want him doing any cloaking – does this mean that this kind of cloaking is not wrong??????? yes – i am a real beginner!!!!!
Can’t see anything wrong in this. Unless you try to refer someone to a malware/spyware site that will do him harm…
I was recently searching for a good affiliate link cloaker and found the easiest to use one was by Tim Robinson called Cloak N Rotate (http://www.cloaknrotate.com).
It took literally 30 seconds to get up and running (even for a complete newbie like me) and was perfect caus I’m the kind of person who runs screaming out of the room as soon as I see code.
Seems the link broke, the link is: http://www.cloaknrotate.com (no affiliate link)
Thank you for the information on how to hide affiliate links. I just hope the search engines don’t have a problem with this. Thanks for the help.
Hey, nice tip! thanks for sharing
Regards,
Jenn
Entrepreneurs World Cup-World-Class Leadership, Sales, Internet Marketing and Wealth Creation Event featuring an All-Star Cast of Speakers