Hide Your Traffic Sources
A simple PHP redirect file that allows for multiple offers. This will clear the referrer using a double meta refresh.
<?php
// In: GET_['id']
// GET_['code']
// Out: your aff link
//
// Each new case is determined by id
// The Link used is appended with code (for use as subid/keyword)
// Add cases as needed.
// See if refresh has run
$s = $_GET['s'];
// Get ID to determine campaign
$id = $_GET['id'];
// Get code for keyword tracking
$code = $_GET['code'];
if($s==’1′){
if($_SERVER['HTTP_REFERER']==”"){
// Switch ID case to determine link
switch ($id){
case 1:
$link = “http://yourafflink.com/1?kw=”;
break;
case 2:
$link = “http://yourafflink.com/2?kw=”;
break;
default:
die(“Error Processing Request”);
break;
}
$link = $link.$code;
}else{
die(“failed to clear”);
$link = ‘http://google.com’;
}
}else{
$purl=$_SERVER['SCRIPT_NAME'];
$link = $purl.”?s=1&id=”.$id.”&code=”.$code;
}
// Meta-refresh redirect
?>
<html>
<head>
<?php
echo “<meta http-equiv=refresh content=’0;url=$link’>”;
?>
</head>
<body>
</body>
</html>
To add more offers just make more switch cases. The code variable can be used to track keywords or subids.
usage: http://yourserver.com/file.php?id=[id]&code=[keyword]
Again, it may not be coded best but it seems to work.