How to Hide Original Referrer Script

nixnash

Power Member
Joined
Oct 26, 2009
Messages
600
Reaction score
213
Hey guys This shows the page referrer of the page you want to show a referral from. It can do this regardless of origin of your traffic (if ever you need to send links to a network).
For example, you can email traffic to any of your websites that?ll instantly redirect to the offer. From there, your page will be shown as the referral. Make the network happy by putting some good content on your ?referral page? and to get you all set!

PHP:
?php 

$url = (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; 

function parse($cadena,$busca){ 
if($busca=="") return 1; 

$vi = split("%",$busca); 
$offset=0; 
for($n=0;$n<count($vi);$n++){ 
if($vi[$n]== ""){ 
if($vi[0]== ""){ 
$tieneini = 1; 
} 
} else { 
$newoff=strpos($cadena,$vi[$n],$offset); 
if($newoff!==false){ 
if(!$tieneini){ 
if($offset!=$newoff){ 
return false; 
} 
} 
if($n==count($vi)-1){ 
if($vi[$n] != substr($cadena,strlen($cadena)-strlen($vi[$n]), strlen($vi[$n]))){ 
return false; 
} 

} else { 
$offset = $newoff + strlen($vi[$n]); 
} 
} else { 
return false; 
} 
} 
} 
return true; 
} 


$searchthis = "%email%"; 

$resp = parse($url,$searchthis); 


if ($resp ==1){ 
header("Location:http://www.yourafiliatelink.com"); 
} else{ 

} 

?>

I hope you guys find this useful.
 
Back
Top