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

DMR inside Iframe just loops in IE7 - help.

Discussion in 'Black Hat SEO' started by ChanzGrande, Sep 3, 2009.

Tags:
  1. ChanzGrande

    ChanzGrande Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 16, 2008
    Messages:
    2,484
    Likes Received:
    1,159
    Occupation:
    Accountant
    Location:
    Northern Woods Counting Money
    Hello all,

    I am using a DMR inside an Iframe, and it appears to work pretty well overall, but not in IE7.

    Ex.

    My landing page has a cropped email sub, but the crop is actually off the DMR instead of the networks page.

    I did it this way because my referrers were leaking with cakeslice standalone. The method is effective, and the DMR itself works fine in IE, but when I load it up in the iframe, it just loops.

    Any way to fix this?

    Thanks!
     
  2. TheInternetHustler

    TheInternetHustler Regular Member

    Joined:
    May 16, 2008
    Messages:
    484
    Likes Received:
    392
    I just tried it, and it didnt loop for me. I am using doublemetarefresh.com for the DMR
     
  3. 195471

    195471 Regular Member

    Joined:
    Oct 11, 2008
    Messages:
    417
    Likes Received:
    260
    I just did a test with a DMR in an iframe using IE7, and I did not see a loop. If you're willing to show some code, maybe we can see what the problem might be.
     
  4. ChanzGrande

    ChanzGrande Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 16, 2008
    Messages:
    2,484
    Likes Received:
    1,159
    Occupation:
    Accountant
    Location:
    Northern Woods Counting Money
    Thanks for quick reply. I have sent you a PM to seek clarification. I have concerns with the suggestion you have provided.
     
  5. ChanzGrande

    ChanzGrande Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 16, 2008
    Messages:
    2,484
    Likes Received:
    1,159
    Occupation:
    Accountant
    Location:
    Northern Woods Counting Money
    Are you also using an url shortening service, or a cloaking provider?

    I am using an ONSITE DMR that has not leaked referrer data to my knowledge for well over a year.

    Here is the code:

    Code:
    1.php
    
    <?php
    echo "<meta http-equiv=\"refresh\" content=\"0;url=http://example.com/2.php\">";
    ?>
    Code:
    2.php
    
    <?php
    $page1 ="AFFLINK1";
    $page2 ="AFFLINK2";
    $page3 ="AFFLINK3";
    $referer = $_SERVER['HTTP_REFERER'];
    $mypages = array($page1, $page2, $page3);
    $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=http://example.com/1.php\">";
        }
    ?>
     
  6. 195471

    195471 Regular Member

    Joined:
    Oct 11, 2008
    Messages:
    417
    Likes Received:
    260
    I used an on-site DMR, but I didn't check for a blank referrer in the second PHP file. Then I tested your code and got the loop in IE7 but not FF. Here's what's going on according to Fiddler:

    [​IMG]

    Your 2.php page is seeing the page that has the iframe as the referrer when viewing the page with the iframe in IE7. So for example, what I did was set up a page at w3.mysite.com/goto.html, which had an iframe whose "src" was w3.mysite.com/1.php. The 1.php meta refreshed to 2.php (I just copied and pasted your code and put some random URLs for your "AFFLINK" values), and since -- in IE7 -- 2.php sees goto.html as the referrer, it's sending you back to 1.php, hence the loop.

    As for a solution, you could try adding code to 2.php that checks if the referrer is the page with the iframe, and if it is, have it refresh to "$myrandompage", like you do when the referrer is blank.
     
  7. ChanzGrande

    ChanzGrande Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 16, 2008
    Messages:
    2,484
    Likes Received:
    1,159
    Occupation:
    Accountant
    Location:
    Northern Woods Counting Money
    Thank you for this walk-through on exactly what is causing the challenge I am experiencing. By visiting a ton of other threads on site, I see I am not the only experiencing this concern.

    If I implement your suggested "fix," won't that send the iframed page as src/referrer on through to the affiliate network?

    Also, is this something I can do with an OR function, or would I need to script out an entirely new section for checking if the referrer is the iframed page?

    Thanks again!

    Any suggested code?
     
  8. 195471

    195471 Regular Member

    Joined:
    Oct 11, 2008
    Messages:
    417
    Likes Received:
    260
    You're welcome. :)

    If you use my suggested fix, then yeah, the affiliate network will see the page containing the iframe as the referrer. Sorry about that. :eek: As an alternative, you could do away with the DMR setup altogether and go with a double-iframe structure like this:

    On domain1.com (your black hat domain), put an iframe with src="http://w3.domain2.com/page1.html". This page1.html (or whatever you want to name it) will have an iframe with src="YourAffiliateURL". The affiliate network will see w3.domain2.com/page1.html as the referrer. Domain2.com is your white hat domain. I haven't done any offer cropping, so I don't know what other code you may need to accommodate with this setup. Hopefully it will work for you, though.

    In regard to your question about the "OR function", I'm assuming that you could add that to the line where you check for a blank referrer, but I'm not a PHP coder, so I don't know for sure.
     
  9. ChanzGrande

    ChanzGrande Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 16, 2008
    Messages:
    2,484
    Likes Received:
    1,159
    Occupation:
    Accountant
    Location:
    Northern Woods Counting Money
    Actually, for anyone who is looking for a solution to this challenge - this is about the best you can do:

    1. Use a PHP function to determine if the user is using an Internet Explorer browser, and if they are - redirect them to a standard DMR without an Iframe.

    Otherwise you can redirect them to your cropped iframed offer.

    Hope it helps. I'll open a thread sometime tomorrow(later today) with specific code examples.