Normally i were using script of Brad but for some crazy reason it doesnt work on few of my blogs now [maybe matte of theme?]. ANyways, is there any other simple way of faking the referer of CPA? Im kinda in rush making big campaign and got stuck coz of that :/
Yes wordpress but seems some other pluging [no diea which since i use same plugins in all autoblogs] is causing the error with brads one. :/
Ok.... I think this will work for you... Put the first code in the beginning of your index page. Code: <?php include("filename.php"); ?> See filename.php above. That should be whatever you name the next file code below... So copy the code below into a php file. Name it whatever you want and call it by using the code above (and change to whatever your file name is) in your index page. Code: <?php // call this page with ?ref=1 or 2 or 3, any number pointing to one of the links from $merchanturls array. $merchanturls[0] = $_SERVER['PHP_SELF']; $ref=$_GET["ref"]; if (!empty($ref)) { echo "<html><body onload=\"javascript:frmClickTracking.submit();\">"; echo "<form action=\"" . $merchanturls[0] . "\" method=\"post\" name=\"frmClickTracking\">"; echo "<input type=\"hidden\" name=\"ref\" value=\"" . $ref . "\" />"; echo "</form></body></html>"; exit; } $merchanturls[dell] = "http://dell.com"; $merchanturls[yahoo] = "http://yahoo.com"; $ref = $_POST['ref']; if (!empty($ref)) { if ($ref<=count($merchanturls)) { $targeturl = $merchanturls[$ref]; if (!strpos($targeturl,"?")) { echo "<html><body onload=\"javascript:frmClickTracking2.submit();\">"; echo "<form action=\"" . $targeturl . "\" method=\"get\" name=\"frmClickTracking2\">"; echo "</form></body></html>"; exit; } else { $pos = strpos($targeturl,"?"); $pageurl = substr($targeturl,0,$pos); echo "<html><body onload=\"javascript:frmClickTracking3.submit();\">"; echo "<form action=\"" . $pageurl . "\" method=\"get\" name=\"frmClickTracking3\">"; $params = substr($targeturl,$pos+1); $aparams = explode("&",$params); for ($k=0;$k<count($aparams);$k++) { $aparamvalues = explode("=",$aparams[$k]); if (empty($aparamvalues[1])) $aparamvalues[1]=""; echo "<input type=\"hidden\" name=\"" . $aparamvalues[0] ."\" value=\"" . $aparamvalues[1] . "\" />"; } echo "</form></body></html>"; exit; } } } ?> Now see in the code above $merchanturls[dell] = "http://dell.com"; [dell] is your code to send to "http://dell.com" ... you can name [dell] to whatever like [comp2323230] .... So in the example above and what is in the code you should be able to redirect to dell by using the following: hxxp://yoursite.com?ref=dell (change to http) If /?ref=dell is not there then it will stop at your index page. Let me know if this works. Also a thanks would be nice
Quick update about the name you use for /?ref= .... When entering in your info for [whatever] so that it looks like /?ref=whatever , you must start this with a letter not a number or symbol... Otherwise it will/may not work properly. Hope this helps
Thanks mate. I have been trying to read about these lately. I know there has been other threads about it, but I think they always put the php in the actual index/default rather than using <?php include> Please bear with me, I have 4 main questions which I cant seem to find an answer to when searching the forum... 1) Firstly this is not actually a fake referrer is it, its more of a redirect? (i.e. it works by going through the page on your domain to appear as originating there). Therefore that means you cant say have someone click a link on yoursite1.com/offer.htm and it appear to come from yoursite2.com/offer.htm ? (without having the code on the latter) 2) If it was in your index file or whatever, then surely all an AM has to do is 'view > source' to see your code and magic number/string for the redirect. Obviously here its separate which is better, however surely they can see the php file you are calling and then simply type YourSite.com/filename.php and do 'view > source' to get the same info? 3) Is there a way to 'protect/lock' the php file so that it cant be viewed/downloaded or whatever (e.g typing yoursite.com/file.php) and only loaded into the webpage thats calling it? 4) Also with referrers, doesn't it record the last 2 'jumps' ? (i.e. if they came from google to your site, then clicked a link to your aff-link, they can see traffic back to your site and then back to google) ? Would much appreciate anyone who can answer the above for me
Yes you should put <?php include("filename.php"); ?> change filename.php to whatever your file name is that contains the long code and make sure it is .php That's not what I meant. It's like this, you have email traffic and you want to show your site as the referer and not the email site. So you send it to the link.com/?ref=whatever it will show link.com as the referer (meaning the traffic went to your site and the clicked a link to go the aff link, or so it appears.) PHP files are not accessible by viewing the source code via a web browser. You would actually have to either hack your way to the cpanel or login to see it. Try for yourself to go to your own PHP site and look at the source code for PHP code. ALL DATA can be viewed. But most only track the last refering site as it would take some serious packet data to find each transfer for each affiliate out there.
luck you,i tested one script for faking referrer in the morning and succeeded. this method require curl module.
You might want to check out the following: Code: http://www.contentgeneration.org/how-to-fake-a-browser-referrer-for-blackhat-cpa/
Ok, so I think I got this right. This code: Code: <?php include("filename.php"); ?> needs to be included in my index page. Now this index page obviously has to be php and not an html doc, right?? Also, so this index page with be the page my AM sees if she checks my traffic source, so I should just make a fake legit looking page on the index page with the previous code included right?? Then to redirect I just use the name of the location of the index page along with ?ref=whatever I think I've got this down right, I just need to know if this is correct so I can fake my traffic source for obvious reasons.