Question with iFrames & Blanking Referrer

Discussion in 'Black Hat SEO' started by Total Noob, Jul 12, 2009.

  1. Total Noob

    Total Noob Jr. Executive VIP Jr. VIP Premium Member

    Joined:
    May 10, 2009
    Messages:
    2,130
    Likes Received:
    2,004
    Location:
    Florida
    Hi,

    I have an iFrame set up, but obviously I do not want to get caught and have it leaked.

    I have my iFrame set up at www.site.com and it also goes to it if I enter www.site.com/index.php.

    So when I am doing a DMR, should I do these scripts?

    first one, goto.php
    Code:
       <?php
    echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.site.com/goto2.php\">";
    ?> 
    second one, goto2.php
    Code:
       <?php
    $referer = $_SERVER['HTTP_REFERER'];
    if($referer == "")
        {
    echo "<meta http-equiv=\"refresh\" content=\"0;url=http://[B]www.affiliate.com/link.php[/B]\">";    
        }
    else
        {
    echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.google.com\">";    
        }
    ?> 
    So right now if I sent them to www.site.com/goto.php it sends then to www.site.com/goto2.php and then goes to www.affiliate.com/link.php, and if it's not blank sends them to Google.

    My question is, what do I put in www.affiliate.com/link.php? Because since it's iFramed, I'm not sure if I should put www.site.com or www.affiliate.com/afflink.

    Any help would be great.

    Jared
     
  2. Mondlicht

    Mondlicht Junior Member

    Joined:
    May 14, 2009
    Messages:
    166
    Likes Received:
    63
    Location:
    UK or GER
    there's a new one for safari, called dmr 2.0 can be found in the forum.

    Code:
    <?php
    
    
    
        $referer = $_SERVER['HTTP_REFERER'];
    
    
    
        if($referer == "")
    
        
    
    {
    
    
    
    header("Location: http://bing.com");
    
    
    
    }else{
    
    
    
    echo "<meta http-equiv=\"refresh\"content=\"0;url=http://yoursite.com/xyz.php\">";
    
    
    
    }
    
    ?>





    Code:
    <?php
    
    
    
        $referer = $_SERVER['HTTP_REFERER'];
    
    
    
        if($referer == "")
    
        
    
    {
    
    
    
    header("Location: http://bing.com");
    
    
    
    }else{
    
    
    
    echo "<meta http-equiv=\"refresh\"content=\"0;url=http://dumpsite6000.com\">";
    
    
    
    }
    
    ?>
    
    
    replace bing.com with your aff link
    replace dump site with another link to exit
    replace
    xyz.php with your second file


    please note, each php tag represents another file.

    so you have two files in total

    the one above is the first landing and get rediercted to landing 2


    advantages are, if there's no referer, you will directly go to the offer.



    so basically you have your iframe now, the iframe loads your dmr and you will end up on your offers page.



    Ok:
    you have 3 files.
    something like the page where your iframe code is contained ( say index.php )
    and 2 files for your meta refresh.
    inside the iframe code, it'll link to meta refresh 1
    and then it'll go to meta refresh 2, if there's everything fine as well, it'll go to affinate link which you define in your code
     
    Last edited: Jul 12, 2009
  3. Total Noob

    Total Noob Jr. Executive VIP Jr. VIP Premium Member

    Joined:
    May 10, 2009
    Messages:
    2,130
    Likes Received:
    2,004
    Location:
    Florida
    Mondlicht, thanks for your reply. Having it for Safari as well is useful if I have people using mac's. My question is however, if I send them through the DMR to my iFramed page and they fill out the offer, will they be blanked? So I put my aff link as replaced with bing.com, or else they would be sent straight to the aff link if I put the real aff link which would be www.affsite.com/sdfsdfsdfsdf and I want them to go to the iFramed page, not the full page.