1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to fake the referer?

Discussion in 'Cloaking and Content Generators' started by iglow, May 19, 2009.

  1. iglow

    iglow Elite Member

    Joined:
    Feb 20, 2009
    Messages:
    2,081
    Likes Received:
    856
    Home Page:
    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 :/
     
  2. seikooc

    seikooc Regular Member

    Joined:
    Aug 11, 2008
    Messages:
    268
    Likes Received:
    132
    Occupation:
    BH Implementation
    Location:
    Blackhat World
    Are you only using wordpress?
     
  3. iglow

    iglow Elite Member

    Joined:
    Feb 20, 2009
    Messages:
    2,081
    Likes Received:
    856
    Home Page:
    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.
    :/
     
  4. xxMP3xx

    xxMP3xx Regular Member

    Joined:
    May 19, 2009
    Messages:
    368
    Likes Received:
    46
    Location:
    <?php return 'CPU'; ?>
    Are you using dmr in ur script ?

    Why not make a seperate and page and redirect users to cpa offer ?
     
  5. iglow

    iglow Elite Member

    Joined:
    Feb 20, 2009
    Messages:
    2,081
    Likes Received:
    856
    Home Page:
    Tell me what cod to put there then ;p I dont want to DMR the stuff i need to fake it not clear
     
  6. xxMP3xx

    xxMP3xx Regular Member

    Joined:
    May 19, 2009
    Messages:
    368
    Likes Received:
    46
    Location:
    <?php return 'CPU'; ?>
    I dont know if you can fake it , sry abt tht :)
     
  7. seikooc

    seikooc Regular Member

    Joined:
    Aug 11, 2008
    Messages:
    268
    Likes Received:
    132
    Occupation:
    BH Implementation
    Location:
    Blackhat World
    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 :)
     
    • Thanks Thanks x 28
  8. seikooc

    seikooc Regular Member

    Joined:
    Aug 11, 2008
    Messages:
    268
    Likes Received:
    132
    Occupation:
    BH Implementation
    Location:
    Blackhat World
    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 Thanks x 1
  9. ambientmusicman

    ambientmusicman Newbie

    Joined:
    May 28, 2009
    Messages:
    16
    Likes Received:
    1
    hmmm what are these programs?
     
  10. slater

    slater Registered Member

    Joined:
    Apr 23, 2009
    Messages:
    59
    Likes Received:
    3
    Occupation:
    Seo analyst
    I had a look at them but I still have something to learn before playing with it ;-)
     
  11. miked1919

    miked1919 Registered Member

    Joined:
    May 21, 2009
    Messages:
    68
    Likes Received:
    13
    I think someone already linked it up sp00f.com you can use as well
     
  12. snoopy996

    snoopy996 Junior Member

    Joined:
    May 27, 2009
    Messages:
    196
    Likes Received:
    12
    this is a problem
     
  13. bluewhale

    bluewhale Newbie

    Joined:
    Apr 5, 2009
    Messages:
    25
    Likes Received:
    16
    wow, this is like greek and latin to me.
     
  14. Wikolia

    Wikolia Junior Member

    Joined:
    Sep 26, 2008
    Messages:
    130
    Likes Received:
    38
    Location:
    Dark side of the moon
    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 :)
     
  15. seikooc

    seikooc Regular Member

    Joined:
    Aug 11, 2008
    Messages:
    268
    Likes Received:
    132
    Occupation:
    BH Implementation
    Location:
    Blackhat World
    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.
     
    • Thanks Thanks x 2
  16. letusgo

    letusgo Junior Member

    Joined:
    Nov 15, 2008
    Messages:
    199
    Likes Received:
    125
    luck you,i tested one script for faking referrer in the morning and succeeded.
    this method require curl module.
     
  17. Chris Devon

    Chris Devon Jr. VIP Jr. VIP Premium Member

    Joined:
    Jul 2, 2008
    Messages:
    507
    Likes Received:
    192
    Yeah, it works; now check the IP of the request
     
  18. sen0lis

    sen0lis Registered Member

    Joined:
    Apr 22, 2009
    Messages:
    97
    Likes Received:
    12
    You might want to check out the following:

    Code:
    http://www.contentgeneration.org/how-to-fake-a-browser-referrer-for-blackhat-cpa/
     
    • Thanks Thanks x 1
  19. moneygod

    moneygod Newbie

    Joined:
    Apr 18, 2009
    Messages:
    32
    Likes Received:
    0
    Thanks for your share
     
  20. haydenm92

    haydenm92 Junior Member

    Joined:
    Apr 24, 2008
    Messages:
    141
    Likes Received:
    40
    Occupation:
    Student/Blackhatting
    Location:
    Idaho
    Home Page:
    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.