someguy
Registered Member
- Sep 17, 2008
- 86
- 39
Hey everyone,
if you want to hide your traffic source, you could use a double meta redirect. But I have to show a referer while hiding the traffic source. So I need a redirect, which does the following:
1. Traffic source: Yahoo! Sponsored Search (overture.com)
2. Redirect to: www.mysite.com/redirect.php
3. Redirect to: www.affiliatesite.com/affid=123
There referer shown at the affiliatesite should be 2. www.mysite.com/redirect.php
Redirect with php header():
This will not work because the source will still be shown in the referer.
Meta-Refresh in HTML Head
Won't work because FF and IE show blank referer
Javascript method 1 - window.location.href
IE shows blank page, works with FF
Javascript method 2 - form.submit
Works! But this is a very unusual way of hiding your traffic source, is there a better way?
The best would be a script only redirecting when getting the traffic from a specified Domain, otherwise showing the content of the page without redirecting. Whats methods do you use?
if you want to hide your traffic source, you could use a double meta redirect. But I have to show a referer while hiding the traffic source. So I need a redirect, which does the following:
1. Traffic source: Yahoo! Sponsored Search (overture.com)
2. Redirect to: www.mysite.com/redirect.php
3. Redirect to: www.affiliatesite.com/affid=123
There referer shown at the affiliatesite should be 2. www.mysite.com/redirect.php
Redirect with php header():
Code:
<?php header(?Location:http://www.www.affiliatesite.com/affid=123?);?>
Meta-Refresh in HTML Head
Code:
<html>
<head>
<meta http-equiv=?refresh? content=?0;url=http://www.affiliatesite.com/affid=123?>
</head>
Javascript method 1 - window.location.href
Code:
<script language=Javascript>
window.location.href=?[url]http://www.affiliatesite.com/affid=123?;[/url]
</script>
</html>
Javascript method 2 - form.submit
Code:
<body onload=?javascript:frmClickTracking.submit();?>
<form action=?[url]http://www.affiliatesite.com/affid=123?[/url] method=?post? name=?frmClickTracking?>
</form>
The best would be a script only redirecting when getting the traffic from a specified Domain, otherwise showing the content of the page without redirecting. Whats methods do you use?