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

Faking the Referrer - Is it this Simple?...

Discussion in 'Black Hat SEO' started by cupid_stunt, Nov 27, 2008.

  1. cupid_stunt

    cupid_stunt Junior Member

    Joined:
    Oct 30, 2008
    Messages:
    189
    Likes Received:
    229
    Occupation:
    Internet Marketer
    Okay so I've see a lot of people on here want to know how to fake the referrer as I opposed to blanking it, but like many of them I am yet to find an answer.

    Why can't I just go like this?:

    www.BlackhatSite.com ----> Double Meta Refresh ----> www.whitehatsite/signup/offer1 ----> CPA Offer

    The double meta-refresh would be two simple PHP pages of cause, and once it checks the referrer is blank it goes to a page on your whitehat site which redirects straight to the affiliate offer? Is it this simple?

    This would mean the referrer as the blackhat site is most defnitely blank, and the page on the whitehat site would be a simple redirect or single meta redirect.

    Would the referrer show as: www.whitehatsite/signup/offer1
    Or am I missing something here? Wouldn't that seem legit, if on the whitehat site have banner on the actual pages which hyperlinked to www.whitehatsite/signup/offer1?

    Or does it not store the referrer as my white-hat site if its a straight redirect?

    Any help would be much appreciated,
    Thanks
     
  2. Gogeta

    Gogeta Power Member

    Joined:
    Jun 29, 2008
    Messages:
    524
    Likes Received:
    1,493
    Occupation:
    Internet Hustler
    • Thanks Thanks x 1
  3. cupid_stunt

    cupid_stunt Junior Member

    Joined:
    Oct 30, 2008
    Messages:
    189
    Likes Received:
    229
    Occupation:
    Internet Marketer
    To explain further the code would be like this:

    www.BlackhatSite.com --> Links to www.BlackhatSite.com/page1.php

    www.BlackhatSite.com/page1.php
    Code:
    <?php
    echo "<meta http-equiv="refresh" content="0;url=page2.php">";
    ?>
    
    www.BlackhatSite.com/page2.php
    Code:
    <?php
     $page1 ="http://www.whitehatsite/signup/offer1";
     $referer = $_SERVER['HTTP_REFERER'];
     $mypages = array($page1);
     $myrandompage = $mypages[mt_rand(0, count($mypages) -1)];
     if($referer == "")
         {
             echo "<meta http-equiv="refresh" content="0;url=$myrandompage">";
         }
     else
         {
             echo "<meta http-equiv="refresh" content="0;url=page1.php">";
         }
     ?>
    
    

    www.whitehatsite/signup/offer1 redirects straight to CPA offer

    Would this work?
    Thanks
     
  4. paper_chase

    paper_chase Regular Member

    Joined:
    Oct 17, 2008
    Messages:
    394
    Likes Received:
    42
    Yes that would. Double check it by setting the redirect to my-i-p.com to see what the referrer is.
     
  5. sambadoria

    sambadoria Registered Member

    Joined:
    Feb 6, 2008
    Messages:
    50
    Likes Received:
    25
    That can be done... but notice that you've increased the wating time, because the visitor actually have to visit several pages before he lands into the CPA offer.
    In slower connection or even at peck times, this may make you lose some visitors along the way :)
     
  6. cupid_stunt

    cupid_stunt Junior Member

    Joined:
    Oct 30, 2008
    Messages:
    189
    Likes Received:
    229
    Occupation:
    Internet Marketer
    Yea that's always the downside. How could I speed it up? Or is there some other way I can use? Thanks
     
  7. phph5

    phph5 Regular Member

    Joined:
    Aug 7, 2010
    Messages:
    225
    Likes Received:
    42
    Why don't you just use CPAredirector on your whitehat page? Blanking the referrer and then redirecting to your whitehat page doesn't make sense, unless the whitehat page is just a 301 redirect, which again doesn't make sense..

    edit: I just noticed this thread is 2 years old.. duh