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>)";
}
?>