All methods of Affiliate Link Cloaking

You can read plenty articles about that, overspend on Affiliate Link Cloaking software or order ebooks, but you still will not get to know all necessary information about it in one source. That's the reason why I created this post to give an comprehensive overview about all easy-to-understand and easy-to-use Affiliate Link Cloaking strategies.

The target of this post is to optimize your campaigns and to maximize the CTR (Click-through rate) to the top. You do not need advanced skills.

PART 1 of this post: Meta Refresh, Frameset

Using the wrong kind of Affiliate links will definitely decrease your quality score at Google and at AdWords PPC campaigns. Additionally, direct (visual) affiliate links avoid many click throughs, because visitors see them. Often they click on the link, remove your Affiliate link and perhaps clear their cache and reload the site without your Aff link. You let them find the product, but you will never get any commission for it. In some cases you help them to find the product and they use their own Affiliate link to order.

When we would like to know what is recommended to use, we also have to know what is better not to use. In the first part of this post we look at strategies you may better not use, because they are old-fashioned, can cause a penalty or may be not allowed by the merchant. Please read their TOS (Terms of Service) very carefully, before you use anything that is mentioned here. Whatever you do, it is in your responsibility.

What is Affiliate Link Cloaking?

Affiliate link visible in status barIf you link directly with your Affiliate link, the visitor notices the Affiliate link in the Browser status bar, e. g. http://www.domain.tld/aff.php?id=a3f9h2t, and will not click.

"Affiliate Link Cloaking" obfuscates this link, so the visitor will see some other link. Affiliate link visible in Browser Address bar But: after clicking the link they see the Aff link at the targeted site. To avoid this more advanced programming is necessary, but is almost not allowed by any merchant. Only a few merchants help you, because they redirect the incoming Aff link at their webserver to their webpage without including Aff link in URL, e. g.
redirects to

How does Aff link cloaking work?

A file at your webserver redirects to the page of the merchant. This file is stored in a folder. You link from your article or banner to this file or folder. I will show methods with HTML, JavaScript, htaccess and php.

Basic steps: Create and block folder

Create a folder at your webserver. Give it a meaningful name! Do not name it /aff/ or /affiliate/ or /redirect/... Name it /partner/ or /recommend/ or /advice/. Do not use numbers (/4521/) or numbers combined with characters (/rj45h21/, because visitors may will not trust those links.

To avoid Google (and other search engines) crawling this folder, create a robots.txt in the root directory of your webserver and copy and paste this:

User-agent: *

Disallow: /recommend/

(replace "recommend" with the name you have chosen)

Against public opinion, Google will crawl this folder, but will not publish it in their SERPs.

Another method: blocking via Meta Tag. Put this into the <head> of the page:

<meta name="robots" content="noindex, nofollow">

Method 1: Redirecting with Meta Refresh

Meta Refresh is a method that refreshs the browser's content via a Meta Tag.

Let's test it with two HTML-files. First one "click.htm" and second "refresh.htm" (names only for testing).

<a href="refresh.htm">Click this link</a>

<meta http-equiv="refresh" content="0; url=http://www.domain.tld/aff.php?id=a3f9h2t">

Download both files as .zip for testing: Test Meta Refresh

How to use this with Affiliate Link Cloaking

Save the refresh.htm into the folder /recommend/.
Insert somewhere in your article a link:
<a href="http://www.domain.tld/recommend/refresh.htm">Buy this now</a>

Affiliate link NOT visible in status barAs you see the visitor will not see the Affiliate link in the status bar at your website:
But at link target...

Disadvantages of Redirecting via Meta Refresh:

  • URL of the target page will be shown with Affiliate link in Browser Address bar

  • many people say that Search Engines do not like this method since 2006

Method 2: "Redirecting" via Frameset (Framing)

Frameset means a set of frames a page is organized in. Any frame of the frameset can load a different HTML file.

Let's test it with two HTML files. First one "click.htm" and second "frameset.htm".

<title>Hey I can write any title for this page</title>
<frameset rows="100%,*" border="0" frameborder="0" marginleft="0" margintop="0" marginright="0" marginbottom="0">
<frame src="http://www.domain.tld" scrolling="auto" frameborder="no" border="0" noresize>
<frame topmargin="0" marginwidth="0" scrolling="no" marginheight="0" frameborder="no" border="0" noresize>
<p>Insert any message for browsers that do not support frames</p>

Download both files as .zip for testing: Test_Frameset

How to use this with Affiliate Link Cloaking

Save the frameset.htm into the folder /recommend/.
Insert somewhere in your article a link:
<a href="http://www.domain.tld/recommend/frameset.htm">Buy this now</a>

Affiliate link NOT visible in Browser Address barAs you see the visitor will not see the Affiliate link in the status bar AND will not see it in the Browser Address bar at link target. Additionally: the browser back button is cleared. Visitors cannot return to your page.

Of course this was a nice method, but it does not show any credibility when the visitor will look at a website like with
"http://www.domain.tld/recommend/frameset.htm" in the Browser Address bar...

Gets tricky?

Some people put this Frameset file as index.html at any available domain, e. g. If the brand name was "Toys from here" and this brand had the domain, they would buy the domain To be honest I don't have to advise you that this causes trademark infringement, but some people will never learn as they still use this method today.

Another one?

Some people insert all Meta Tags into this frameset.htm (title, description, keywords, language) and set some links on this page or domain. Visitors find the Affiliate frameset in Google without knowing that this page is a faked one. If Google get to know this, it will remove this domain from the SERPs. If not...

Nowadays this method can normally not be used, because it cannot be tracked by some Affiliate programs correctly and you may lose any commissions. Additionally it may not be allowed by merchant.

Source code cannot be viewed as usual, but...

A normal visitor maybe tries to check the source code of this page without knowing that it is a frameset. He clicks right-mouse and "View source" and will see the source code of the target page. No way to reveal that this page is a faked one. No way? There is nearly always a way. - If you look at the Browser menu bar you find the command button "View". Click it at such a page and then click "Source". Ooops, you will see the source code of the frameset... (Before "Tabbed browsing" it was possible to hide the browser menu bar via JavaScript, so this check was not possible...)

In PART II and III of this post you will learn about Cookie dropping, Framebreaker, and the more interesting methods "JavaScript Link Cloaking", "JavaScript-Redirect", "Redirect via htaccess" and "PHP Cloaking".

I think the upcoming blog posts is extremely interesting. Maybe you want to get informed, then subscribe to this blog's feed! - See you soon at SEM, SEO and SMO at Wulffy's Blog.

This blog post Affiliate Link Cloaking - Part I is categorized under Search Engine Optimization, SEO, Web 2.0, Social Media Optimization, SMO, Search Engine Marketing, SEM.


Rand Fishkin "Randfish" as the CEO and co-founder of SEOmoz will marry Geraldine TODAY in Medford, Oregon.

Rand and Geraldine are meant to be together (as far as you can read). This story is a kind of unbelievable caused by the way Rand makes his proposal to Geraldine.

Imagine you are watching not only television but your favorite TV show "Veronica Mars" (an American teen mystery series) and suddenly your boyfriend drops into your TV screen during a commercial and makes a proposal. (Rand bought this TV commercial during "Veronica Mars".)

On February, 6th, 2007, Rand made it happen:
The Super Proposal

Now you have seen it from the perspective of Geraldine, but how did she react?

The reaction of Geraldine

Starting at 3:30pm local time the Wedding ceremony will be at Eden Valley Winery (Google Maps)

Time zone: Pacific Daylight Time (PDT)
Current time zone offset for Germany: UTC/GMT -7 hours

As far as I can see the weather is beautiful with 30° Celsius and sunshine and 22° Celsius in the evening...

If you plan to marry or you are only curious:
Photo Gallery Weddings at Eden Valley Orchards

Congrats Rand & Geraldine
may you have a long and happy life together!

All details about this wedding: Rand will marry Geraldine

As SEO I recommend you to practice Randfish's posts (1548 right now)

Don't forget to become a PRO Member of! As a PRO Member you get Unlimited tools that save time, money, and training costs for your company.

Do not forget to subscribe to my feed! - See you soon at Search Engine Optimization Web 2.0 - Wulffy's (SEO) Blog.

This blog post Congrats Rand & Geraldine - Wedding today at Eden Valley Winery is categorized under Search Engine Optimization, SEO Web 2.0, Social Media Optimization, SMO.


One group of SEOs gives comments and the others buy links

In fact it is not more honorable to buy links than giving comments on blogs and websites. But both camps have been at war with each other for a long time.

Often it is not possible to read every post in the web on publishing date. Sometimes I roam the web to find some outstanding SEO posts. For some months it has been almost impossible to find any good SEO post in Germany, so I decided to spend my time in reading all over the world (as I did before). You find outstanding SEOs in the US, India, Australia and in some other countries. Only a very few of them go into detail. In the US you find very famous SEOs or even SEO celebrities.

As regular readers of this blog know, I am a very big fan of Rand Fishkin, because he's a SEO with a utmost knowledge and has still the heart at the right place. It's almost impossible to find SEOs that are combining both. Many things Rand got to know by testing and trial and error. Rand Fishkin "Randfish" is the CEO and co-founder of SEOmoz.

I mentioned Rand, because I want to refer to one of his statements as it perfectly fits to the outstanding SEO post I found - although it was not written for it.

"However, today I'm thrilled to see an article ... that's not only impeccably well-written, but informative to even those of in most deeply inside the search industry."

The post I'm referring to is written by Eli Feldblum, a recognized SEO and SEM expert and the CEO of RankAbove (Jerusalem and New York). He informs about the details of SEO spamming and, thus, cites the example of Barnes and Noble's How-To site Quamut.

Read about SEO spamming. Why it brings users, adds content and raises stature. Eli opens our minds to understand that this really helps sites to become thousands of new members and to get noticed. Even more he points out that companies like MySpace, YouTube and Wikipedia would never have got that kind of success without SEO spammers.

Think for example about how many commercial articles and links are published with tricks in Wikipedia, even though against their guidelines:

"SEO Spammers are helping the internet continue to grow."
Eli Feldblum

Read the full article about SEO Spam is Good.

Don't forget to become a member of! As a PRO Member you get Unlimited tools that save time, money, and training costs for your company.

And don't forget to subscribe to my feed! - See you soon at Search Engine Optimization Web 2.0 - Wulffy's (SEO) Blog.

This blog post SEO Spamming helps the web continue to grow is categorized under Search Engine Optimization, SEO Web 2.0, Social Media Optimization, SMO.