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

Will this mask the referrer?

Discussion in 'Black Hat SEO' started by RightInTwo, May 7, 2012.

  1. RightInTwo

    RightInTwo Power Member

    Joined:
    Feb 23, 2010
    Messages:
    744
    Likes Received:
    381
    Home Page:
    I was wondering if the following would succesfully mask a referrer:

    1. Person visits a site like craigslist (just an example). I have a bitly link on the listing.
    2. The bitly link then redirects to my server that has a server redirect. http://www.mysite.com/out
    3. http://www.mysite.com/out then links to the correct affiliate link.

    Do you guys think the affiliate will be able to track the original source from Craigslist? If not, any suggestions to mask the link are appreciated!

    Also forgot to add, what would the final referall be. Is it ww.mysite.com/out that is visible to the site that I am promoting?
     
    Last edited: May 7, 2012
  2. Smart SEO

    Smart SEO Senior Member

    Joined:
    Apr 17, 2011
    Messages:
    857
    Likes Received:
    759
    Location:
    Google HQ
    Not and expert in this so sorry. What i would try is bit.ly ===> referer.us cloaked domain (with content) ====> another domain or subdomain =====> your affiliate link
     
  3. KillerHeck

    KillerHeck Regular Member

    Joined:
    Apr 12, 2011
    Messages:
    239
    Likes Received:
    442
    We'll I got some experience in cloaking and only bit.ly will definitely does not hide the referral. Bit.ly actually ALWAYS leaks the referral. This always works for me:

    referer.us => bit.ly => mysite => your officiate
     
    • Thanks Thanks x 1
  4. Techxan

    Techxan Elite Member

    Joined:
    Dec 7, 2011
    Messages:
    3,093
    Likes Received:
    3,585
    Occupation:
    Local SEOist
    Location:
    TEXAS (you have to yell, its the law.)
    I dont know about that, but this is a PHP double meta refresh redirect using a single page. I found this on the forum, and even gave the guy rep, but I do not know who's work it is. The credit is his, not mine, if someone knows who this was, please PM me and I will give credit where credit is due.

    FYI, I use it.


    Namethe landing [age anything you want, make these changes to the code:


    Under the //landing page line, change the " $bounce_loc='referer.php'; " to your url like this " $bounce_loc='youraffiliatelink'; ".

    If you want to change the referrer, go to the line under " //Dump Location and replace google with the domain you want to be the referer







    Code:
    <?php
    //Grab arguments from the GET string
    $SEC = $_GET['S'];
    
    //If on second bounce SEC = 1
    if ( $SEC == '1' )
    {
     //Validate (make sure the referer cleared)
     if ( $_SERVER['HTTP_REFERER'] == '' )
     {
       //Landing page
       $bounce_loc='referer.php';
     }
     else //Bad! dump them somewhere!
     {
       //Dump location (for metas that didn't clear)
       $bounce_loc="http://www.google.com";
     }
    }
    else //First time through--bounce them back!
    {
     $self = $_SERVER['SCRIPT_NAME'];
     $bounce_loc="$self?S=1";
    }
    ?>
    
    <html>
    <head>
    <?php
    print("<meta http-equiv=refresh content='0;url=$bounce_loc'>");
    ?>
    </head>
    <body>
    
    </body>
    </html>
     
    • Thanks Thanks x 2
  5. RightInTwo

    RightInTwo Power Member

    Joined:
    Feb 23, 2010
    Messages:
    744
    Likes Received:
    381
    Home Page:
    Ok cool this is what I have been doing. Thank you!
     
  6. RightInTwo

    RightInTwo Power Member

    Joined:
    Feb 23, 2010
    Messages:
    744
    Likes Received:
    381
    Home Page:
    THANK YOU! I think this adds another layer that I was looking for.
     
  7. RightInTwo

    RightInTwo Power Member

    Joined:
    Feb 23, 2010
    Messages:
    744
    Likes Received:
    381
    Home Page:

    So I tried this, but all it does is redirect the person to Google. It hits my affiliate link briefly (you can see it in the URL toolbar) and then redirects them to Google where it finished.
     
  8. S/ash

    S/ash BANNED BANNED

    Joined:
    Jan 16, 2012
    Messages:
    1
    Likes Received:
    0
    yes, it'll 100% :)
     
  9. SuperLinks

    SuperLinks Elite Member

    Joined:
    Jul 14, 2008
    Messages:
    2,903
    Likes Received:
    847
    Location:
    New York
    There's some good ideas in this thread that will help you take things to the next level.

    Utilizing a refer.us or equivalent before a Bit.ly link is brilliant! It'll also help if you need to create multiple Bit.ly links for campaigns.
     
  10. sonicpunk32

    sonicpunk32 Regular Member

    Joined:
    Dec 22, 2009
    Messages:
    331
    Likes Received:
    472
    How come refer.us is content locked with ads on it that won't let me use it no matter how many times I click on the ads?

    How come so many of you have recommended use of it?

    How come I smell something fishy about this refer.us?
     
  11. RightInTwo

    RightInTwo Power Member

    Joined:
    Feb 23, 2010
    Messages:
    744
    Likes Received:
    381
    Home Page:
    I noticed the same thing when I went to it.
     
  12. sonicpunk32

    sonicpunk32 Regular Member

    Joined:
    Dec 22, 2009
    Messages:
    331
    Likes Received:
    472
    My guess is because of this:

    Code:
    
     if ( $_SERVER['HTTP_REFERER'] == '' )  {
        //Landing page    $bounce_loc='referer.php';  }  
    else //Bad! dump them somewhere!  {  
      //Dump location (for metas that didn't clear)    
    $bounce_loc="http://www.google.com";  }
    
    You went to your page (the php one referenced in this thread) and it sees that you went there directly because the REFERER is blank, and sends them to google.
     
  13. ComputerEngineer

    ComputerEngineer Senior Member

    Joined:
    Apr 25, 2012
    Messages:
    833
    Likes Received:
    70
    at fire fox hit ctrl shift k

    and you can follow the referrers when navigation via links from that web console panel
     
  14. sonicpunk32

    sonicpunk32 Regular Member

    Joined:
    Dec 22, 2009
    Messages:
    331
    Likes Received:
    472
    Okay, I've figured out how this script works. Programming isn't my strong suite, so bare with me.

    When you first land onto the PHP page, which calls itself "referer.php" in the code, it will tell the browser to go to it again. with the URL "/referer.php?S=1".

    When the PHP page sees that you have "S=1" in the URL, it then begins it's code. It will make sure that the REFERER is blank (because this is the second time going to the page) and then it will take you to whatever URL you defined in here where it says "// Landing page":

    Code:
     //Validate (make sure the referer cleared)
     if ( $_SERVER['HTTP_REFERER'] == '' )
     {
       //Landing page
      [COLOR=#ff0000] $bounce_loc='referer.php';[/COLOR]
     }
     else //Bad! dump them somewhere!
     {
       //Dump location (for metas that didn't clear)
       $bounce_loc="http://www.google.com";
     }
    
    If it sees that you went to the PHP page using the URL "/referer.php?S=1" and the REFERER is not blank, for some reason the refering URL is still being passed on, then the PHP page will send the browser to what is defined here:

    Code:
     //Validate (make sure the referer cleared)
     if ( $_SERVER['HTTP_REFERER'] == '' )
     {
       //Landing page
       $bounce_loc='referer.php';
     }
     else //Bad! dump them somewhere!
     {
       //Dump location (for metas that didn't clear)
       [COLOR=#ff0000]$bounce_loc="http://www.google.com";[/COLOR]
     }
    
     
  15. sonicpunk32

    sonicpunk32 Regular Member

    Joined:
    Dec 22, 2009
    Messages:
    331
    Likes Received:
    472
    This is a good script, I'm gonna use it.

    I recommend that you change it to "index.php" or whatever your server prefers it's root/main pages to be called, and put it in a directory like "yourpromo" so that you can just have it look like "http://yoursite.com/yourpromo"

    You can even change the "S=1" to something else if you want to look further legit.
     
  16. Techxan

    Techxan Elite Member

    Joined:
    Dec 7, 2011
    Messages:
    3,093
    Likes Received:
    3,585
    Occupation:
    Local SEOist
    Location:
    TEXAS (you have to yell, its the law.)
    Glad Y'all liked it, if you find the original post, please send me a PM, so I can give credit to the one who deserves it.