hide referer in all browsers

This is code from a ringtone campaign I used a while back that uses javascript submit on body load.

<html>

<head>
<title>Jamster</title>

</head>
<body onload="document.form1.submit();">

<form name="form1" id="form1" method="get" action="URL"></form>
<script type="text/javascript">
document.form1.submit();
</script>

<div style="padding: 30px; text-align: center;">
You are being automatically forwarded to Pink Ringtones by Jamster.<br/><br/>
If you are not forwarded immediately <a href="URL">Click Here.</a>
</div>

</body>
</html>

Had a weird outcome when testing this. My sponsor kept redirecting me to a totally different site somehow. If I took out the auto submit and clicked the URL it took me to the correct site. Very weird but I changed method="get" to method="post" and it redirects fine.

No idea what they have implemented to do that or why but it's a cam affiliate so maybe some sort of protection.
 
Had a weird outcome when testing this. My sponsor kept redirecting me to a totally different site somehow. If I took out the auto submit and clicked the URL it took me to the correct site. Very weird but I changed method="get" to method="post" and it redirects fine.

No idea what they have implemented to do that or why but it's a cam affiliate so maybe some sort of protection.

I have never put an affiliate link directly into an auto submit. If you are trying to hide your referer with that you need to create a chain. If you chained five together the 4th would be the referer for the 5th, the 3rd would be the referer for the 4th, etc. If you set up the last auto submit so that it goes to a 301 redirect or a URL rewrite page that's under your control you won't have to worry about what the affiliate site is doing.
 
Good point, seems simple now but didn't cross my mind. Thanks.
 
I know that, but if you set up a redirect to a cURL script like this:


$url = "destination URL";
$reffer = "referer URL";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_REFERER, $reffer);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
$result = curl_exec($ch);
curl_close($ch);
echo $result;
.....

this is great code!
can I leave the $reffer variable with empty "" quotes for blank referer ?
 
So still no solution?

Double meta refresh does not work in Chrome :(
 
When you can't hide referrers, you should show referrers.. Now that doesn't mean straight dump them through to your affiliate if you are doing blackhatstuff. Obviously, your referrer prefers whitehat stuff right? Well, thats exactly what you should show them then.

Write a targetted blog post, put it in a seperate html file. When the referer does not get blanked you should redirect to this blog post. On the blog post, check to see if the referrer is coming from your hide refer script. If it is, throw a meta refresh out to your affiliate and it looks like the traffic is coming from the blog. if your affiliate checks the blog though, all will be gravy. There you go, no need to hide the referrer if you can just show them a more legit one from an apparent whitehat source.
 
Back
Top