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

How To Easily Fake The Referrer When Using Double Meta Refresh

Discussion in 'Black Hat SEO' started by metalcolin, Oct 4, 2008.

  1. metalcolin

    metalcolin Newbie

    Joined:
    Oct 1, 2008
    Messages:
    30
    Likes Received:
    68
    Location:
    US
    Here is a simple way to hide your real traffic source and show your CPA a fake referrer. I am going to assume you already know how to implement double meta refresh to blank your traffic source, if not please see http://www.blackhatworld.com/blackhat-seo/black-hat-seo-tools/20750-double-meta-refresh-redirects.html

    Ok you know how to make your referrer blank which is great but some (or most) CPA's want to know how you get your traffic, if you don't your aff manager might give you some shit if you bring in serious money. Plus I hate to have to SLOW DOWN on how much I milk an offer just bc I get traffic from a source they don't like.

    A very simple way of faking your referrer is to set up a selective page redirect using simple javascript on a genuine landing page. Here is the code:

    HTML:
    <script language=Javascript>
    var ref;
    ref=document.referrer;
    
    if (ref.replace("YOUR_REFERRER.com","") != ref)
    {
    window.location.href='http://www.Genuinely .com';
    }
    //=====Code By: metalcolin=====
    if (ref.replace("YOUR_REFERRER_2.com","") != ref)
    {
    window.location.href='http://YOUR_CPA_OFFER.com';
    }
    //===== metalcolin ======
    if (ref.replace("http://YOUR_REFERRER_3.com","") != ref)
    {
    window.location.href='http://www.YOUR_CPA_OFFER.com';
    }
    //=====
    </script>
    This is how you do it, you set up your basic double meta to point to your landing page and configure your javascript to redirect the traffic coming from your 2nd redirects ONLY (important). For example, in the 'YOUR_REFERRER.com' you put in the FULL url of your 2nd meta refresh which will only redirect the traffic that comes from that source and it will leave the referrer as your landing page for your CPA network to see (which is what you want).

    When someone from the CPA Network comes to check out your landing page they will NOT be redirected and everything looks perfectly legit :)

    Some reputation points or thanks would be appreciated....

    BTW, what are the rep points good for anyway? .. Serious question, im new here so i don't know.
     
    • Thanks Thanks x 10
  2. cashcow

    cashcow Junior Member

    Joined:
    Sep 15, 2008
    Messages:
    162
    Likes Received:
    22
    This idea sounds great, but it does not work on my FF :(
     
  3. metalcolin

    metalcolin Newbie

    Joined:
    Oct 1, 2008
    Messages:
    30
    Likes Received:
    68
    Location:
    US
    what message do you get? or whats does it do?
     
  4. metalcolin

    metalcolin Newbie

    Joined:
    Oct 1, 2008
    Messages:
    30
    Likes Received:
    68
    Location:
    US
    Ive used the javascript for a while yea. Let me see if I missed something
     
  5. mikie46

    mikie46 Jr. VIP Jr. VIP

    Joined:
    Aug 6, 2008
    Messages:
    1,454
    Likes Received:
    1,102
    Where is my post? I just posted and its gone.
     
  6. metalcolin

    metalcolin Newbie

    Joined:
    Oct 1, 2008
    Messages:
    30
    Likes Received:
    68
    Location:
    US
    I just realized what I forgot. You will need to have double meta refresh and two redirects. Sounds like a Lot but it will do the deal 100%.

    HTML:
    <script language=Javascript>
    var ref;
    ref=document.referrer;
    
    if (ref.replace("","") != ref)
    {
    window.location.href='http://YOUR_LANDING_PAGE.com';
    }
    //=====Code By: metalcolin=====
    if (ref.replace("","") != ref)
    {
    window.location.href='';
    }
    //===== metalcolin ======
    if (ref.replace("","") != ref)
    {
    window.location.href='';
    }
    //=====
    </script>
    Basically you would put this one in your 3rd page pointing to the selective redirect (landing page) since the double meta wont leave a referrer. I'll post a more detailed outline to drive the point home. Let me know if this helps.
     
  7. metalcolin

    metalcolin Newbie

    Joined:
    Oct 1, 2008
    Messages:
    30
    Likes Received:
    68
    Location:
    US
    Alright, here is the fixed version.​


    You will have 4 PAGES all together which will perform redirects. Pages 1 and 2 will do the initial redirecting to clear the referrer. Page 3 is an intermediary to create a referrer from one of your whitehat domains and finally Page 4 will pass the referrer on to your CPA Network AND it will act as a front for how legitimate your practices are in the case someone visits it without going throug the redirects.

    This is how it all will look,

    PAGE 1:

    Code:
    <?php
    
            echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.YOURDOMAIN.com/PAGE2.php\">";
    
    ?>
    PAGE 2:

    Code:
    <?php
    
        $referer = $_SERVER['HTTP_REFERER'];
    
        if($referer == "")
    
        {
    
            echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.YOURDOMAIN.com/PAGE3.htm\">";    
    
        }
    
    ?>
    PAGE 3:

    Code:
    <script type="text/javascript">
    <!--
    window.location = "http://www.YOURDOMAIN.com/PAGE4.htm"
    //-->
    </script>
    PAGE 4:

    Code:
    <script language=Javascript>
    var ref;
    ref=document.referrer;
    
    if (ref.replace("YOURDOMAIN.com/PAGE3.htm","") != ref)
    {
    window.location.href='http://www.YOUR_CPA_OFFER.com';
    }
    //=====Code By: metalcolin=====
    if (ref.replace("YOUR_REFERRER_2.com","") != ref)
    {
    window.location.href='http://YOUR_CPA_OFFER.com';
    }
    //===== metalcolin ======
    if (ref.replace("http://YOUR_REFERRER_3.com","") != ref)
    {
    window.location.href='http://www.YOUR_CPA_OFFER.com';
    }
    //=====
    </script>
    You can see the working version here: lokulo*ku*0rg/URL1.php

    The final landing page is lokulo*ku*0rg/re2.htm if you go to this url without going to URL1.php you will see the landing page.

    Sorry for the confusion, again could someone tell me what the reputation points count towards?
     
    • Thanks Thanks x 4
    Last edited: Oct 4, 2008
  8. moneymaker101

    moneymaker101 Newbie

    Joined:
    Sep 14, 2008
    Messages:
    38
    Likes Received:
    14
    can you use this with a blogspot blog?
     
  9. mazzim

    mazzim Junior Member

    Joined:
    Jul 25, 2008
    Messages:
    125
    Likes Received:
    77
    it works with FireFox, but it does Not seem to work with Opera and Safari, what i see inside Opera is that URL1 is redirecting to URL2, but that's where it ends, no further redirection to CPA offer page, i DONT know but this can cause problems if affiliate manager visits your page using Opera/Safari !! we need to be careful here... did u test this will ALL popular browsers ?? i mean did u test it with IE, FireFox, Opera, Safari ??
     
  10. reinrein

    reinrein Regular Member

    Joined:
    Feb 8, 2008
    Messages:
    443
    Likes Received:
    343
    Home Page:
    you AM will only visit your landing page not the redirect pages.
     
  11. paper_chase

    paper_chase Regular Member

    Joined:
    Oct 17, 2008
    Messages:
    394
    Likes Received:
    42
    Great post. Thanks for sharing.
     
  12. dekadent30

    dekadent30 Power Member

    Joined:
    Nov 10, 2008
    Messages:
    516
    Likes Received:
    146
    i know much more simple method, go to polish site http://skocz.pl and add your affiliate link to it (it is a site like tiny url) and your referrer will be blank. I have checked this method by adding check referrer page url to skocz.pl and always i saw blank referrer
     
  13. antsaoo

    antsaoo Supreme Member

    Joined:
    Oct 1, 2008
    Messages:
    1,291
    Likes Received:
    637
    thank you for share. Also i have tested with tinyurl with all browsers (exept opera since forgot it existed lol) But anyways :)

    if some1 would know how to fake your refer to be from google search or so would be like supercool , lol ;)
     
  14. Abstroose

    Abstroose Elite Member

    Joined:
    Nov 20, 2008
    Messages:
    2,097
    Likes Received:
    3,475
    Occupation:
    Thai Boxer
    Location:
    UK
    Home Page:
    Doesn't work on Google Chrome either...

    Nice idea, slightly confusing though.
     
  15. fun4uoc

    fun4uoc Jr. VIP Jr. VIP Premium Member

    Joined:
    Dec 25, 2007
    Messages:
    1,199
    Likes Received:
    1,041
    Location:
    ☆ ♔ ☆ ♔ ☆ ♔ ☆
    Nice post, thanks and rep given.
     
  16. Siek

    Siek Regular Member

    Joined:
    Feb 4, 2008
    Messages:
    456
    Likes Received:
    294
    I've been doing something similar - but i didnt blank my referrers - In a sense i show the network my BLACKHAT site..but thats not what they see.. ill show you what i mean..

    First you gotta send all your traffic to this page
    PAGE1.com (http://www.PAGE1.com)
    Code:
    <body onload="javascript:frmForcedReferrer.submit();">
    <form action="http://www.PAGE2.com" method="post" name="frmForcedReferrer">
    </form>
    
    On page 2 - you'll get the browser to detect the referrer and show what you want to show them...So PAGE 1 REDRECTS to PAGE 2...(the code above forces the referrer ot be passed)

    Page 2 - (http://www.PAGE2.com)
    Code:
    <?php
    
        $referer = $_SERVER['HTTP_REFERER'];
    
        if($referer == "http://www.PAGE1.com")
    
        {
    
            echo "
    
    Put your BLACKHAT SITE SOURCE in here - you can use HTML (bascially show the entire html WEBSITE source
    
    ";    
    
        }
    
    else
    
    {
            echo "
    SHOW YOUR WHITEHAT HTML CODE HERE
    
    ";
    }
    ?>
    
    As you can see all i did was manipulate the DMR and changed it to a forced redirect. Your blackhat page will only be shown if they come from PAGE1.com. So you'll be passing your referrer off the the networks using PAGE2.com - if they get suspcicious they'll take a look at it and they'll see a nice whitehat page that has no sign of blackhat in site. Not in your source no where..

    I've tested this and it has been working as far as i know. Test it out for yourself to test if it works. Im sure you can insert an extra page in here and have the whtiehat and blackhat site be on seperate domains but its up to you lol
     
    • Thanks Thanks x 1
  17. theundreamer

    theundreamer Registered Member

    Joined:
    Nov 16, 2008
    Messages:
    77
    Likes Received:
    13
    Occupation:
    US Army for now..
    Location:
    Here
    Home Page:
    @ Siek: I'm only confused at what you mean by "SHOW YOUR WHITEHAT HTML CODE HERE" and the BLACKHAT SITE SOUCE? Like you mean the ENTIRE html from the webpage? Or like... one of those simpler meta refresh code mentioned in those other threads?

    Like

    Code:
    echo "<meta http-equiv="refresh" content="0;url=http://www.YOURDOMAIN.com/PAGE3.htm">";
    ???
     
  18. Abstroose

    Abstroose Elite Member

    Joined:
    Nov 20, 2008
    Messages:
    2,097
    Likes Received:
    3,475
    Occupation:
    Thai Boxer
    Location:
    UK
    Home Page:
    You are a genius. You know when you come across an idea and think why didn't I think of that? You have just completed solved something I've been trying to figure a way around all night.
     
  19. Siek

    Siek Regular Member

    Joined:
    Feb 4, 2008
    Messages:
    456
    Likes Received:
    294
    Yes i do mean your entire WHITEHAT PAGE SOURCE...your entire HTML...bascially if your browser detects the referrer then it'll show the balckhat site...(THE HTML SOURCE).. you can do redirects if you want same thing i guess lol Its just if your doing your blackhat stuff and the referrer is passed on a certain page..then a redirect wont make much sense to the AM's..

    BTW theres two thing si forgot to mention
    1) this is a PHP page document so it has to be a PHP file not an HTML or HTM file
    2) This has to do with echoing out HTML SOURCES...PHP does not like double quotes (") b/c its screws with the coding...so when your echoing your HTML source - before every double quote (") put this slash infront of each one () or just use single quotes (') and it'll do the same thing... remember the doubel quotes only in your ECHO HTML Source is needed..

    Just realized that it doesnt shoudl the single slash its the one that goes from TOP LEFT to BOTTOM RIGHT (the slash is above my enter button)
     
    Last edited: Nov 23, 2008
  20. bugsbunny

    bugsbunny Newbie

    Joined:
    Oct 16, 2008
    Messages:
    19
    Likes Received:
    3