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 'Cloaking and Content Generators' 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 27
  2. mikie46

    mikie46 Jr. VIP Jr. VIP

    Joined:
    Aug 6, 2008
    Messages:
    1,454
    Likes Received:
    1,102
    Hi, when you say landing page do you mean from Google PPC -> landing page? Can you use it for that?
     
  3. metalcolin

    metalcolin Newbie

    Joined:
    Oct 1, 2008
    Messages:
    30
    Likes Received:
    68
    Location:
    US
    I just realized I forgot something. 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.
     
    • Thanks Thanks x 4
  4. metalcolin

    metalcolin Newbie

    Joined:
    Oct 1, 2008
    Messages:
    30
    Likes Received:
    68
    Location:
    US
    Yes exactly. Something you would make for a PPC or even a real ppc page that you already use for that iffer, if you do.
     
  5. natjay

    natjay Newbie

    Joined:
    Jul 26, 2008
    Messages:
    4
    Likes Received:
    2
    This reminds me of something I saw over at the Slightly Shady SEO blog.
     
  6. 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("lokuloku.org/re1.htm","") != ref)
    {
    window.location.href='http://www.google.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 12
  7. almir

    almir Power Member

    Joined:
    Jul 11, 2008
    Messages:
    728
    Likes Received:
    229
    If this works, you could make thousands with it. People are selling all kinds of BS, and if it works, some "guru" will implement this in his "extremelly power" script with few BS add ons, and sell it here for 500-1000 $, and act as a king of blackhat coding later :)
     
  8. metalcolin

    metalcolin Newbie

    Joined:
    Oct 1, 2008
    Messages:
    30
    Likes Received:
    68
    Location:
    US
    Yea that's always been my problem. I never monetize on anything, I guess i don't much see the great value in it since i've been using it for a while(not so much lately though). Wanna sell it for me? We'll split it 50/50 lol :p
     
  9. almir

    almir Power Member

    Joined:
    Jul 11, 2008
    Messages:
    728
    Likes Received:
    229
    its easy, you just have to say at least twice a day that you are the best, the most handsome, and have more brilliant brain on the earth. If you add a talk about someone else as an amateur, thats better.

    Than sales will come, and people will love you because they have sent few hundreds to your way. Remember, that's a privilege :) They will run behind you, from thread to thread expressing their loyalty, and confirming how big and unique you are

    On that point you just need a crown ;)
     
    • Thanks Thanks x 1
    Last edited: Oct 4, 2008
  10. metalcolin

    metalcolin Newbie

    Joined:
    Oct 1, 2008
    Messages:
    30
    Likes Received:
    68
    Location:
    US
    Erase the referrer and create a new one? Can you point me to it? That would save me loads of time.
     
  11. metalcolin

    metalcolin Newbie

    Joined:
    Oct 1, 2008
    Messages:
    30
    Likes Received:
    68
    Location:
    US
    Nvermind, I missed the link in your post, disregard the last post.

     
  12. charles

    charles Junior Member

    Joined:
    Aug 11, 2008
    Messages:
    132
    Likes Received:
    152
    Also, what if the user has decided to disable Javascript? :p
     
  13. metalcolin

    metalcolin Newbie

    Joined:
    Oct 1, 2008
    Messages:
    30
    Likes Received:
    68
    Location:
    US
    I tried using these two php redirects and they redirect fine except the final site gives me a 405 method post error. I tried pointing to my domains and even to ggoggle, same thing. I'm not sure if I'm missing something...
     
  14. metalcolin

    metalcolin Newbie

    Joined:
    Oct 1, 2008
    Messages:
    30
    Likes Received:
    68
    Location:
    US
    FXdomains, but the error it comes from the final page (my cpa offer) which isn't hosted by me. I also tried pointing it to ggoogle.

    I'll try it with another host if the issue is with my host. Either way, don't worry about it I'll try to figure it out, I'm assuming if you got it to work then it just might be the host, might even just need to chmod or... something.
     
  15. metalcolin

    metalcolin Newbie

    Joined:
    Oct 1, 2008
    Messages:
    30
    Likes Received:
    68
    Location:
    US
    Well that's what I thought too, but for some reason every once in a while it happens to leak the referrer (don't ask me how or why). I mean you could technically use just the two or even to play it semi-safe 3, but i dont want to post it and then get people banned from their networks. This way I know the ref won't get passed, but anyone is free to modify as they wish.
     
  16. JohnsonDaniel

    JohnsonDaniel Regular Member

    Joined:
    May 16, 2008
    Messages:
    389
    Likes Received:
    1,385
    Location:
    In a bright place---------------------------------
    Hi,

    This is just what I was wanting to learn how to do...BUT:

    I used the lokulolu links to test the demo as it was set up on your domain.

    And I found:

    Firefox 2.0.0.17 - click on ur1.php - end up on g00gle.c0m - check LIve Http headers - G00gle.c0m sees re2.htm as referrer - Happy!

    Opera 9.52 - click on url1.php ---> get redirected to url2.php - does not move beyond that - and, of course, url2.php is blank, so the person using Opera never ends up on afflink

    Chrome - exactly the same as Opera

    IE 7.0 - click on url1.php --> end up on re2.htm (landing page), so, once again, user never reaches the afflink (update: had IE 7.0 set to allow Sun Java - changed it to also allow Java VM - still reaches re2.htm)

    Not too sure if my testing is wonky - but would be particularly worried about IE7 users not reaching my afflink - Opera and Chrome don't yet really seem to have a large enough percentage of internet users for it to bother me - but would be fantastic to have a solution for ALL browsers.

    Any thoughts? Some error in the code that could maybe be fixed? Or could the error be on the demo pages on lokulolu?

    Thanks in advance anyway for what looks like a good method!
     
  17. Morpheus

    Morpheus Newbie

    Joined:
    Jul 10, 2008
    Messages:
    37
    Likes Received:
    10
    JohnsonDaniel,

    I haven't tested metalcolin's method (what you're referring to). I can say that Genjutsu's method (he linked to it earlier in this thread) seems to work perfectly for me. I tested it in IE6, IE7, FireFox 3.0.3, and Safari 3.1 (those are all I have installed). I would recommend you try Genjutsu's method for doing this.
     
  18. Carnagge

    Carnagge Registered Member

    Joined:
    Dec 23, 2007
    Messages:
    97
    Likes Received:
    9
    I will give it a try cause it looks really interesting. Thanks in advance :)
     
  19. captainbrian

    captainbrian Junior Member

    Joined:
    Sep 22, 2008
    Messages:
    109
    Likes Received:
    28
    Location:
    New Jersey, U.S.
    Home Page:
    this is nice, can i have multiple sites get refreshed to having no source? I want to do this with multiple sites.. is there any way to make this easier?
     
  20. donnieo

    donnieo Newbie

    Joined:
    Dec 6, 2006
    Messages:
    43
    Likes Received:
    6
    You can also use sessions to pass yourself hidden variables and do referrer checking with php so the code is not so visible (like with javascript).