About Cloaking Referers
Cloaking referers in the sense on how we; ppc affiliates using them is to cloak/spoof/hide the incoming referering traffic to the networks we work with. In other words, as affiliates if you cloak your referer, you can hide from the network where your traffic is coming from. The reason you would want to do this is because if you do not cloak your incoming referers the network with whom you work with will know where all of your traffic is coming from.
If they know where all of your traffic is coming from, they will see the keywords your bidding on and the text advertisements you have written, they will also be able to see the landing pages your using. In other words, if you do not cloak your incoming referers the networks you work with will know everything about your campaign. This is a bad thing.
As affiliates we are getting paid to promote other peoples' products and services, if we reveal to them everything we are doing to generate traffic they no longer need us. In that they can simply shut us down and then start bidding on the keywords themselves, they can copy your landing pages and use them for their own needs because if you do not cloak your referers they will see everything your doing. Keep in mind that most networks promote their own offers internally, so if they see all your keywords don't be surprised if they start bidding on them theirselves. They too can make money off promoting offers via ppc, and this is why you want to cloak your referers, you don't want them to know where your traffic is coming from, just like you don't want other affiliates to know your keywords, likewise you don't want the network with whom you work with to have all of your keywords. So that is why we cloak, and I'm going to show how to do it here.
How Does Cloaking Referers Work
So know you know alittle bit about why we cloak our referers, let me share with you how it works. So again, basically whenever someone clicks on a link to another website for instance, that website which receives the new visitor can find out by using some PHP code, or some other type of code, where that visitor came from. So if you click through a link on our website to google.com for instance, google.com automatically can find that you came from Prosper202.com, they do this by checking your browser's http referer information. In other words, google.com can check where their visitors come from, so in order to difuse this we need to make it look like we came from a different website!
So this is how it works, now instead of clicking through a link straight to google you clicked on a link to example.com/redirect.php, and then on example.com/redirect.php it redirected to you google.com. Now what happens is google thinks you came from example.com/redirect.php, because that was the last landing page you landed on before goign to google. See we cloaked the referer, they can no longer tell you came from Prosper202.com, because you clicked on a link to example.com/redirect.php first, and then that page loaded on your browser, it then redirected you to google.com, so when google pulls the referer data it thinks you can from example.com/redirect.php instead of prosper202.com.
Now I know this might seem a little confusing so I will illustrate it below
- Without Cloaking
- Prosper202.com » Google.com
- In the above example, google.com can tell Prosper202.com was the referer
- With Cloaking
- Prosper202.com » Example.com/redirect.php » Google.com
- Notice now, you are going to google.com through example.com/redirect.php, google now thinks that you came from example.com/redirect.php, you have succesfully cloaked this referer. Google.com does not know now that you came from Prosper202.com, it thinks you came from Example.com/redirect.php.
So you see in the above examples, google.com now thinks your visitor came from example.com/redirect.php, bceause that is the last referer the visitor was at before coming to google.com. This is how cloaking the referer works.
How To Set It Up
You now know how cloaking the referers works, basically instead of directly linking to google.com, we link to another page, in this case, example.com/redirect.php instead, which then redirects the visitor to google.com.
So to set it up is quite simple, instead of making your links to google.com, make your links point to a different page that will redirect your visitors to google.com. So for instance, you could now link your visitors to mydomain.com/redirect.php, so then you would want to change all your outbound links to mydomain.com/redirect.php, and then we will redirect out to google.com instead. Below I will show you the code you need to place on mydomain.com/redirect.php to succesfully redirect a visitor out to google.com with cloaking.
Redirect.php
<html>
<!-- Replace http://google.com with whatever url you like !-->
<head>
<title>Google</title>
<meta name="robots" content="noindex">
<meta http-equiv="refresh" content="1; url=http://google.com">
</head>
<body>
<form name="form1" id="form1" method="get" action="http://google.com"></form>
<script type="text/javascript">
document.form1.submit();
</script>
<div style="padding: 30px; text-align: center;">
You are being automatically redirected to Google.<br/><br/>
Page Stuck? <a href="http://google.com">Click Here</a>.
</div>
</body>
</html>
Conclusion
Now instead of hyperlinking directly to google.com any more, you change your links to your redirect.php file, which you can name whatever you want, and then it'll redirect the visitor with google.com; with google now unable to see the true referer source! On the google side it will appear as the visitor now came from redirect.php, but they really came from a different page, but because we cloaked the referer, google only sees redirect.php as the referer. You have now cloaked the referer succesfully.
Good Practice: You should always test everything after setting up a cloaked redirect to make sure your visitors go through properly.



Pam on Jun 27, 2008 at 11:54am
Is this what you're saying?
mylandingpage --> prosper202tracking --> cloakedreferer.php --> merchant
Too many redirects? Google QS?
Wes Mahler on Jun 27, 2008 at 12:09pm
It may be Pam, thats generally why we like to switch over to: landing pages instead of using direct links.
However, in the google QS it states as long as the DISPLAY URL on your ad, matches the final destination URL in your chase the >> merchant's url, we should be fine.
JK Swopes on Jul 09, 2008 at 4:57am
Hmmm, this is some good information. I had been using link cloaking to cloak my affiliate links, which, in essence creates an html redirect. Do all redirects/cloaking have the same effect? Or do you specifically need to use a php redirect?
Wes Mahler on Jul 09, 2008 at 7:11am
.html or .php works the same!
Although be warned if your using Meta-Refresh, or Javascript window.location redirects, as they don't work for IE6, and IE7, in spoofing the referer.
Dayne on Jul 17, 2008 at 10:35pm
Why not use a php redirect instead? Server side -- no worries about their web clients compatibility.
<? header("location:http://google.com"); ?>
Wes Mahler on Jul 18, 2008 at 7:57pm
Hi Dayne,
Well we aren't just trying to redirect, we are trying to scrub the referer, using a php header redirect doesn't scrub/cloak the referer like we are talking about.
Greg on Aug 14, 2008 at 8:29am
What's the difference between using the code you provided above and the Cloaking option in Step #3 "Add A Campaign"
Wes Mahler on Aug 14, 2008 at 3:03pm
Hey Greg,
The code above is some of the code used when you turn on CLOAKING with T202, so that is an example of how we do it partially.
Wes (MasterlessSamurai.com) on Aug 25, 2008 at 3:44pm
Wes,
so basically this was simply for the purpose of explaining cloak referrers right. We really dont need to use the code above since T202 can auto cloak? or did i miss something?
Wes Mahler on Aug 26, 2008 at 5:46am
Yeah absolutely, it does it for you, more so an explanation.
emily on Sep 29, 2008 at 12:08am
it will be obvious to the networks that the traffic is cloaked?
Is there a way to make it not obvious, or look like it was really coming from a different page?
Steven on Sep 29, 2008 at 6:53pm
There is but then you would need a custom script for that separately.
Maple on Oct 08, 2008 at 8:59am
How to make it to redirect immediately, without showing "You are being automatically redirected to Google."
Nice Job Wes !
Steven on Oct 09, 2008 at 4:15am
There really isn't a way to make something redirect instantly unless they got mega fast internet, and even then, chances are some loading will occur and it will show in the status bar.
Wes Mahler on Oct 13, 2008 at 2:24pm
Hey Maple, just go ahead and modify the HTML accordingly if you'd like to remove it or change it.
Mikhail on Oct 22, 2008 at 7:48am
Hi, Wes
As I correctly understand from the comments this method only works with Mozilla Firefox?! But you likely know that 85% internet users use Internet Explorer(6 and 7v) and just about 14% - Firefox. So it's bad idea to use the cloaking method you mentioned. It doesn't work with Explorer at all. What's the best method to hide referers, keywords for ALL users? Thanks in advance.
Wes Mahler on Oct 22, 2008 at 7:16pm
Oh this method works for everything!
the problem was on IE, that the meta-refreshes didn't block the referrer for all browser, it didn't block it on IE.
This script should work for them all.