How Do You Hide Affiliate Links From Google?
There are two main reasons why you would want to hide your affiliate links from Google:
- They “leak” link juice;
- They say, Google hates affiliate links because they show to Google that the site’s content is “second-hand”
So, we are running into the dilemma here: we want to monetize Google traffic and we don’t want to risk our reputation. Two main strategies to use are (note: to avoid link juice leak, the combination of these strategies can be used):
| Example | A Disadvantage | |
| rel=”nofollow” | <a href=”http: //affiliatesite.com/productID&yourtracking/” target=”_blank”>name</a> | People are still not sure how Google (as well as other search engines) treats nofollow attribute |
| Any type of redirection + Disallow directive in Robots.txt | <a href=”http: //yoursite.com/visit/nameoftheaffiliate/…”> name</a> + Disallow /visit/ directory in your Robots.txt file | Not really user-friendly: people might expect to go to the same-site page (but instead they are re-directed to another domain) |
How do you hide your affiliate links? Please share your opinion in the comments!
Ann Smarty
Latest posts by Ann Smarty (see all)
- What is the Current State with Directories? - April 29, 2013
- Get on Top of Google SERP by Optimizing for Local Search Results - February 9, 2013
- Get Tweets and Likes at Viral Content Buzz - October 12, 2012
37 Responses to “How Do You Hide Affiliate Links From Google?”
Newsletter
Join the Contest!
Tags
backlink research
backlinks
blogging
competitor research
content
conversions
duplicate content
extrenal links
facebook
Get Backlinks
google
google analytics
Google penalty
guest blogging
guest posts
How To Get Backlinks
interlinking
internal interlinking
keyword brainstorming
keyword research
keywords
keyword stuffing
link baiting
link building service
linking
link juice
links
local
local listings
Natural Link Building
pagerank
ppc
selling seo services
seo
seo tips
social bookmarking
social media
social voting
title
title tags
tools
traffic
twitter
wordpress
wordpress plugins






This is more or less exactly what I do on one of my sites. I use a WP plugin to redirect the links and nofollow on those links. I hadn’t thought of including it in the robots file too, that’s a good idea.
You can also use javascript and not use anchors…. Google won’t follow those “links” because they are not actual links, but the user will be able to click on them and follow the affiliate site.
John S. Britsios Reply:
September 20th, 2009 at 7:20 pm
And what is if the user has JavaScript disabled? For the sake of accessibility you should use a “noscript” tag. And the the link should be static. So I do not consider that as the ultimate solution.
If I can choose I mix 4 ways:
- Create affiliate link with javascript
- This link must be nofollowed
- This link should be redirected (using a directory as base)
- I block the /red directory with robots.txt
John S. Britsios Reply:
September 20th, 2009 at 7:31 pm
If you use javascript for the link with nofollow, why do you need the last two options? More code? Or more work?
What about the solution I posted at WPW? http://www.webproworld.com/search-engine-optimization-forum/78553-new-canonical-tag-big-3-a-4.html#post440204
Ann Smarty Reply:
September 19th, 2009 at 7:20 pm
Thanks, John, for linking to that awesome discussion.
Now Google does craw Javascript.
Here is a useful video from Matt Cutts of Google, on how to handle paid links in javascript.
I guess Fabio has covered it all.
John S. Britsios Reply:
September 20th, 2009 at 7:21 pm
You came too late buddy, or you did not read my previous comment.
Ann, I am glad you did not mention using JavaScript. And here I explain why: http://www.webproworld.com/google-discussion-forum/91252-breaking-news-google-can-crawl-paid-links-implemented-using-javascript.html
I prefer the combination of JavaScript and Doorway internal page per vendor. Of course I also disallow the Doorway page in robots.txt and it works great…
John S. Britsios Reply:
September 20th, 2009 at 7:26 pm
That does not work so fine as you are claiming. Linking to a page which is disallowed via robots.txt you are creating a dead end, otherwise called dangling node pages. That means you are not passing PR to the sites you link to, but your page is leaking PR.
Still there is a solution for that.
With dynamic links I use a php page that is disallowed in the robots text file. when a customer clicks the link it sets up the link by pulling the data from the database and is then redirected using a meta refresh after telling the customer that they are about to be redirected to the vendors website
John S. Britsios Reply:
September 20th, 2009 at 7:36 pm
Two questions Steve:
1. When visit the PHP file, does that page have visible content?
2. What is if a user has disabled meta refresh in his browser? I do that for example.
Which one you prefer best, Ann ?
Ann Smarty Reply:
September 20th, 2009 at 7:16 pm
I mainly use redirection + Disallow Robot.txt directive
John S. Britsios Reply:
September 20th, 2009 at 7:27 pm
Ann can you be more specific how do you do that?
You should know that Hiding your affiliate links increase the CTR(click through) because people will not see a long link making no sense.Nice informative post.Thanks a lot for sharing this post with us.
And what is if the user has JavaScript disabled? For the sake of accessibility you should use a “noscript” tag thanks.
John S. Britsios (aka Webnauts) Reply:
September 22nd, 2009 at 4:03 pm
If you use “noscript”, then Google will see the link and follow it. So is that the solution? I assume not.
Thanks too.
If you are hosting on an Apache server and you do not want google to index and don’t follow the scripts and the links in them, and you have permissions to edit your .htaccess file, you might simply need to add the following lines there:
Header append X-Robots-Tag "noindex,nofollow,noarchive,nosnippet"
How about that?
Sorry but the code did not display in full as I have posted it. See here what I am about: http://www.webproworld.com/google-discussion-forum/91252-breaking-news-google-can-crawl-paid-links-implemented-using-javascript.html#post466614
O Great! The simplest way to hide affiliate links from Goggle is to make them no follow. Thanks for the tips.
Good run down, I think Google has been more prone to giving away page rank recently, so you have to be careful how often you link out and to whom.
That does not work so fine as you are claiming. Linking to a page which is disallowed via robots.
I mainly use redirection + Disallow Robot.txt directive.
For some types of creatives I also use iframes.
I usually create js file that contains a function that link to some specified link (Ex.: onclick=”myfunction(‘myurl’);”).
To avoid Google from following the javascript links, I make the function request two parameters, spliting up the URL (Ex.: onclick=”myfunction(‘myurlpart1′, ‘myurlpart2′);”).
Then, I disallow the js file in robots.txt.
(
Ex.: I want to link www.google.com:
myfunction(‘gle.com’,'www.goo’);
myfunction should make it work.
)
*Of course, users with javascript disabled will not see anything happens, but taking into account analytics reports, that says that only 3% of users has no javascript support, I woudn’t care that much.
John S. Britsios (aka Webnauts) Reply:
September 30th, 2009 at 10:00 pm
But I do care about the 3% as that is equal to approx. 330 unique visitors per month in a low trafficed month.
Vinicius B P Reply:
October 1st, 2009 at 3:11 pm
Another thing that I have already done is exactly one of Ann’s suggestions: Any type of redirection + disallow directive in Robots.txt.
To make it a little bit more user friendly, the page responsible for redirecting does not redirect to anywhere, but warns users that they will be redirect to another domain and they can choose between being redirected or going back to where they were.
(
Actually, I combined this technique with javascript. Users with javascript enabled would see an float element asking if they want to be redirected. Users with no js enabled would see the page.
)
For wordpress sites I use the GoCodes plugin, mainly to obscure the link from the user’s status bar. As a bonus it logs the click count.
It displays the path form
siteRoot/GoFlag/pruductName/
The author definable GoFlag term causes the redirect to GoCodes wher the real address is found through the pruductName index.
It’s a good idea to redirect and not show the affiliate link to google. also do not use text from the main site, or if you do, show just 100-150 chars.
I’m a fan of the server-side redirect method when possible.
Hello,
Not sure this is allowed here but I would like to hire a good SEO person and have no clue where to start. I would like to get on Google Product Search too.
Any recommendations anyone?
Thanks,
Kevin
Just a little thought: If I would be a Google programmer I would take the block list of Adblock Pro and simply ignore everything APB ignores before I go on.
Google says the PR of a nofollow link is lost. Nobody outside Google knows if the PR of an redirection through an page that is forbidden to the Google bot will have the same effect. But I think I will.
At the end it’s the wrong discussion. In this case I trust the ability of Google to give any affiliate link the worth it has for their algorithm: zero. We should rather think about hiding affiliate links to ABP.
I prefer no follow but not sure if it is still working. All js, or server redirection is not easy to implement, and it is question of effort / gain. Also you never know when Google will black-hat some of techniques you used on your site….
Redirecting is a big problem for users as it doesn’t allow to locate the particular site he is looking. But ya that’s true that people are still not sure how Google treats nofollow attribute. It’s slightly confusing that what type of criteria google is using.
Web Design Company
I loved your tips. I’ll put into practice.
Congratulations!
Thanks.