dashndash
Power Member
- Jan 18, 2008
- 503
- 91
I was trying a Fake Referrer script which was shared here. But some how couldn't get it to work..
What I need is a Fake Referrer script with a variable to which I can assign any url address to fake...
this is the script.. I tried clicking on other page and landing on this page, and tried clicking from this page and landing on another page.. But in both ways this script is not working... Please help..
What I need is a Fake Referrer script with a variable to which I can assign any url address to fake...
this is the script.. I tried clicking on other page and landing on this page, and tried clicking from this page and landing on another page.. But in both ways this script is not working... Please help..
<?php
//Standalone CPA Redirector v2
//Settings
$magic_number = 1234; // Any number you choose except ZERO!
$cpa_offer_url = 'http://www.google.com';
//Don't edit below this line unless you know what you are doing.
if (isset($_GET['mn']) && $_GET['mn']==$magic_number){
echo '<html><head></head><body><form action="' . 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'] . '" method="post" id="form1">
<input type="hidden" name="mn" value="' . $magic_number . '" /></form>
<script language="JavaScript">
document.getElementById(\'form1\').submit();</script></body></html>';
return true;
exit();
}
if ($_POST['mn']==$magic_number){
echo '<html><head></head><body><form action="' . 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'] . '" method="post" id="form1">
<input type="hidden" name="mn" value="' . $magic_number . $magic_number . '" /></form>
<script language="JavaScript">
document.getElementById(\'form1\').submit();</script></body></html>';
return true;
exit();
}
$dom = preg_replace( "/^www\./", "", $_SERVER[ 'HTTP_HOST' ] ) ;
$ref= $_SERVER['HTTP_REFERER'];
if (((strpos($ref, $dom)!=FALSE) || (trim($ref)=="" ) ) && ($_POST['mn']==$magic_number.$magic_number)){
header( 'Location: ' . $cpa_offer_url);
exit();
}
?>
<html>
<head>
<title>Your Fake Landing Page</title>
</head>
<body>
<br><br><br><br>
<center><h1>Your Fake Landing Page</h1></center>
</body>
</html>