Faking Refer and Rotation

namso

Registered Member
Joined
Aug 26, 2009
Messages
88
Reaction score
11
Can someone help me out with faking the refer while implementing rotation.

So I have a whitehat site and a blackhat site. Not wordpress btw. I want to send my traffic to my blackhat url which fakes the refer as my whitehat site all while sending the traffic to my affiliate links that are on rotation(maybe around 8-10)

can I get some help with this? thanks
 
double meta refresh will do the job. it does blank out refferer. i can help u out if u r not sure.
 
Well I was looking to do something similar I found one way using 2 scripts together I am not sure if there are other ways or scripts doing this at one time if your interested in this send me a pm.

If others are interested in this let me know and I will make a post about this and explain
 
double meta refresh will do the job. it does blank out refferer. i can help u out if u r not sure.

well I am looking to fake my refer to my white hat site instead of blanking it, i want to avoid suspicion from my AM
 
i use 2 scripts to do this and another that i bought which, pm for info
 
PHP:
<?php
// Add this code to the very top of the file that you would like to be the fake referrer and then link to this file like this:
// http://yoursite.com/file.php?goto=111 (Where 111 = the number below).

$link[1]="http://linkone.com/";
$link[2]="http://linktwo.com/";
// Keep on adding more like the above if you want more than 2.

// Change the number '2' below to the number of links that you have in the rotator (above)
$rand = rand(1,2);

// Change the number below to any number you want, affiliate networks may hook onto the 111 so it would be best to change.
$num = "111";

// Do not edit below
if (isset($_GET['goto']) && $_GET['goto']==$num){    
    echo "<html><head></head><body><form action=\""."http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']."\" method=\"post\" id=\"linkrefer\"><input type=\"hidden\"  name=\"num\" value=\"".$num."\" /></form><script language=\"JavaScript\">document.getElementById(\"linkrefer\").submit();</script></body></html>";
    return true;
    exit();
    }
if (isset($_POST['num']) && $_POST['num']==$num){    
    echo "<script>window.location.replace(\"$link[$rand]\")</script>)";
    }
?>

Damn I would have felt like a mug if I had paid for 2 minutes work :)
 
PHP:
<?php
// Add this code to the very top of the file that you would like to be the fake referrer and then link to this file like this:
// http://yoursite.com/file.php?goto=111 (Where 111 = the number below).
 
$link[1]="http://linkone.com/";
$link[2]="http://linktwo.com/";
// Keep on adding more like the above if you want more than 2.
 
// Change the number '2' below to the number of links that you have in the rotator (above)
$rand = rand(1,2);
 
// Change the number below to any number you want, affiliate networks may hook onto the 111 so it would be best to change.
$num = "111";
 
// Do not edit below
if (isset($_GET['goto']) && $_GET['goto']==$num){    
    echo "<html><head></head><body><form action=\""."http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']."\" method=\"post\" id=\"linkrefer\"><input type=\"hidden\"  name=\"num\" value=\"".$num."\" /></form><script language=\"JavaScript\">document.getElementById(\"linkrefer\").submit();</script></body></html>";
    return true;
    exit();
    }
if (isset($_POST['num']) && $_POST['num']==$num){    
    echo "<script>window.location.replace(\"$link[$rand]\")</script>)";
    }
?>

Damn I would have felt like a mug if I had paid for 2 minutes work :)


a couple questions if you don't mind. so this code would go onto my blackhat site? where exactly would I put my whitehat site url on there? and would the linkone/linktwo be my affiliate links on rotation? much appreciated.
 
a couple questions if you don't mind. so this code would go onto my blackhat site? where exactly would I put my whitehat site url on there? and would the linkone/linktwo be my affiliate links on rotation? much appreciated.
You would put that code onto your whitehat page that you want to be the fake referrer and yes the links are on random rotation.
 
PHP:
<?php
// Add this code to the very top of the file that you would like to be the fake referrer and then link to this file like this:
// http://yoursite.com/file.php?goto=111 (Where 111 = the number below).

$link[1]="http://linkone.com/";
$link[2]="http://linktwo.com/";
// Keep on adding more like the above if you want more than 2.

// Change the number '2' below to the number of links that you have in the rotator (above)
$rand = rand(1,2);

// Change the number below to any number you want, affiliate networks may hook onto the 111 so it would be best to change.
$num = "111";

// Do not edit below
if (isset($_GET['goto']) && $_GET['goto']==$num){    
    echo "<html><head></head><body><form action=\""."http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']."\" method=\"post\" id=\"linkrefer\"><input type=\"hidden\"  name=\"num\" value=\"".$num."\" /></form><script language=\"JavaScript\">document.getElementById(\"linkrefer\").submit();</script></body></html>";
    return true;
    exit();
    }
if (isset($_POST['num']) && $_POST['num']==$num){    
    echo "<script>window.location.replace(\"$link[$rand]\")</script>)";
    }
?>
Damn I would have felt like a mug if I had paid for 2 minutes work :)

Anyone happen to know how to make it rotate referring URLs too? Say if I have a content able site, I can input my multiple site based URLs and place the code in the header portion of my site. It will then display different pages as the referrer.

I did it with the rand function but for some reason it's only rotating the first 2 URLs I input. I think it's the rand function messing with it, because I noticed with the vanilla script points to the first URL in the array more than the second...

---

PHP:
<?php
// Add this code to the very top of the file that you would like to be the fake referrer and then link to this file like this:
// http://yoursite.com/file.php?goto=111 (Where 111 = the number below).

$link[1]="http://www.whatismyreferrer.com/";
$link[2]="http://www.whatismyreferrer.com/";

$reflink[1]="http://www.holyshit.com/2009/10/gates-n-korea-still-threat-to-international-peace-ap/";
$reflink[2]="http://www.holyshit.com/2009/10/mass-man-accused-of-plot-to-kill-shoppers-troops-ap/";
$reflink[3]="http://www.holyshit.com/2009/10/congress-moves-to-expand-financial-oversight-ap/";
$reflink[4]="http://www.holyshit.com/2009/10/key-senators-may-rebuff-obama-on-health-care-ap/";
$reflink[5]="http://www.holyshit.com/2009/10/army-officer-soldier-killed-in-pakistan-capital-ap/";
$reflink[6]="http://www.holyshit.com/2009/10/treasury-to-order-bailed-out-firms-to-slash-pay-ap/";
$reflink[7]="http://www.holyshit.com/2009/10/education-chief-calls-for-teacher-prep-overhaul-ap/";
$reflink[8]="http://www.holyshit.com/2009/10/video-makers-release-tape-of-philly-acorn-visit-ap/";

// Keep on adding more like the above if you want more than 2.

// Change the number '2' below to the number of links that you have in the rotator (above)
$rand = rand(1,2);

// Change the number below to any number you want, affiliate networks may hook onto the 111 so it would be best to change.
$num = "111";

// Do not edit below
if (isset($_GET['goto']) && $_GET['goto']==$num){    
    echo "<html><head></head><body><form action=\"".$reflink[$rand]."\" method=\"post\" id=\"linkrefer\"><input type=\"hidden\"  name=\"num\" value=\"".$num."\" /></form><script language=\"JavaScript\">document.getElementById(\"linkrefer\").submit();</script></body></html>";
    return true;
    exit();
    }
if (isset($_POST['num']) && $_POST['num']==$num){    
    echo "<script>window.location.replace(\"$link[$rand]\")</script>)";
    }
?>
 
Last edited:
Anyone happen to know how to make it rotate referring URLs too? Say if I have a content able site, I can input my multiple site based URLs and place the code in the header portion of my site. It will then display different pages as the referrer.

I did it with the rand function but for some reason it's only rotating the first 2 URLs I input. I think it's the rand function messing with it, because I noticed with the vanilla script points to the first URL in the array more than the second...

---

PHP:
<?php
// Add this code to the very top of the file that you would like to be the fake referrer and then link to this file like this:
// http://yoursite.com/file.php?goto=111 (Where 111 = the number below).

$link[1]="http://www.whatismyreferrer.com/";
$link[2]="http://www.whatismyreferrer.com/";

$reflink[1]="http://www.holyshit.com/2009/10/gates-n-korea-still-threat-to-international-peace-ap/";
$reflink[2]="http://www.holyshit.com/2009/10/mass-man-accused-of-plot-to-kill-shoppers-troops-ap/";
$reflink[3]="http://www.holyshit.com/2009/10/congress-moves-to-expand-financial-oversight-ap/";
$reflink[4]="http://www.holyshit.com/2009/10/key-senators-may-rebuff-obama-on-health-care-ap/";
$reflink[5]="http://www.holyshit.com/2009/10/army-officer-soldier-killed-in-pakistan-capital-ap/";
$reflink[6]="http://www.holyshit.com/2009/10/treasury-to-order-bailed-out-firms-to-slash-pay-ap/";
$reflink[7]="http://www.holyshit.com/2009/10/education-chief-calls-for-teacher-prep-overhaul-ap/";
$reflink[8]="http://www.holyshit.com/2009/10/video-makers-release-tape-of-philly-acorn-visit-ap/";

// Keep on adding more like the above if you want more than 2.

// Change the number '2' below to the number of links that you have in the rotator (above)
$rand = rand(1,2);

// Change the number below to any number you want, affiliate networks may hook onto the 111 so it would be best to change.
$num = "111";

// Do not edit below
if (isset($_GET['goto']) && $_GET['goto']==$num){    
    echo "<html><head></head><body><form action=\"".$reflink[$rand]."\" method=\"post\" id=\"linkrefer\"><input type=\"hidden\"  name=\"num\" value=\"".$num."\" /></form><script language=\"JavaScript\">document.getElementById(\"linkrefer\").submit();</script></body></html>";
    return true;
    exit();
    }
if (isset($_POST['num']) && $_POST['num']==$num){    
    echo "<script>window.location.replace(\"$link[$rand]\")</script>)";
    }
?>


You should use the rand function 2 times with different arguments and get a $rand1 and $rand2 variables.
 
You need to change $rand = rand(1,2) to $rand = rand(1,xxx) where xxx is the number of links that you have.

You are also better off having $rand1 and $rand2 so that you can randomly select an aff link and randomly select a referring URL without having to have the same number of each.
 
Hi can anyone help me with putting in cpa redirector. I have three blogs but all my clicks are coming from my cookie stuffer, need some help fast, please! i am happy to pay for someone to do this for me.
 
Last edited:
Hi can anyone help me with putting in cpa redirector. I have three blogs but all my clicks are coming from my cookie stuffer, need some help fast, please! i am happy to pay for someone to do this for me.

There are quite a few threads here on how to set up cpa redirector. Its really quite simple. Read through this thread, should answer any questions you have. http://www.blackhatworld.com/blackhat-seo/cpa/37204-fake-referrer-cpa.html

PM me if you want help with it. I'll need to know if your using WP and what version of cpa-r you have, to be able to give you exact instructions.
 
Last edited:
Back
Top