Cloaking Incoming Referral URLS

wi11iam

Junior Member
Joined
Jan 8, 2012
Messages
123
Reaction score
55
Hi,

I have a website that links out to another website, but I don't want that website to see that the traffic is coming from my website.

I want to hide my website as a referral and send them via anotherwebsite.com that I own and the traffic will look like it comes from that website. This is what I have so far:

PHP:
<?php
     $incoming = $_SERVER['HTTP_REFERER'];

     if(stristr(strtolower($incoming), 'originalwebsite.com') !== FALSE){
            header('Location: http://google.com');
     }
?>

So, if you come to anotherwebsite.com from originalwebsite.com, it will be forwarded to google.com

If you go to anotherwebsite.com from anywhere else, you will that website.

Good.

However, using this method, google will know that the traffic came from originalwebsite.com. I want to hide this!

Anyone can help?
 
I still dont understand your explanation. Can you please expatiate a little? I think your reader need more explanation
 
1. cloaking based on referrers can be very unreliable since the referrer is controlled by the browser or server side script and can be blank, etc.

2. You can blank the referrer yourself using a double meta refresh or you can route the traffic through a tracking script so G will be see the tracking script url as the referrer.
 
Back
Top