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

DMR Looping in IE and Firefox

Discussion in 'Cloaking and Content Generators' started by stoaf88, Mar 2, 2009.

  1. stoaf88

    stoaf88 Regular Member

    Joined:
    Nov 1, 2008
    Messages:
    243
    Likes Received:
    35
    Ok I am using a DMR to a pay per install program, but it is just looping in ie and firefox.

    I have used this code in emails and it worked fine, but from a link on my site it just is looping.

    If someone could take a look and let me know how to fix it that would be great.

    File 1 is called res.php File 2 is called 3rd.php I am linking to mydomain.com/res.php obviously
    PHP:
    <?php
    echo "<meta http-equiv=\"refresh\" content=\"0;url=3rd.php\">";
    ?>
    PHP:
    <?php
    $page1 
    ="http://affiliatelink.com";
    $referer $_SERVER['HTTP_REFERER'];
    $mypages = array($page1);
    $myrandompage $mypages[mt_rand(0count($mypages) -1)];
    if(
    $referer == "")
        {
            echo 
    "<meta http-equiv=\"refresh\" content=\"0;url=$myrandompage\">";
        }
    else
        {
            echo 
    "<meta http-equiv=\"refresh\" content=\"0;url=res.php\">";
        }
    ?>
     
  2. drkenneth

    drkenneth Executive VIP

    Joined:
    Nov 13, 2008
    Messages:
    285
    Likes Received:
    176
    Occupation:
    Developer/Entrepreneur
    Location:
    USA
    This part of the second page needs to be changed:

    Code:
    echo "<meta http-equiv=\"refresh\" content=\"0;url=res.php\">";
    It is sending them back to the first page--trapping them in an infinite loop--if their referer does not clear. Change the res.php part to a page for non-clearing-junk-people; google should work fine.

    Here's a script I know for a fact works in case you're still having problems. (Plus it's only one page.)

    http://www.blackhatworld.com/blackh...effective-double-meta-refresh.html#post334380
     
  3. stoaf88

    stoaf88 Regular Member

    Joined:
    Nov 1, 2008
    Messages:
    243
    Likes Received:
    35
    Thanks for the reply, but the script is working like it is supposed to.

    My question is why is the referrer not blanking?

    It is from my emails but not on my site thus looping.

    If I change it to what u say it will always go to g00gle.

    I am online now if you want to pm me and I will show u the whole page.

    Thanks again
     
  4. antsaoo

    antsaoo Supreme Member

    Joined:
    Oct 1, 2008
    Messages:
    1,291
    Likes Received:
    637
    well , it should work for mozilla and IE atleast ... also you could use some other website which you could make money of rather than google :)
     
  5. stoaf88

    stoaf88 Regular Member

    Joined:
    Nov 1, 2008
    Messages:
    243
    Likes Received:
    35
    I know it should work, but it isnt

    I cant seem to figure out what is wrong

    If someone could please pm me I will show the whole page
     
  6. drkenneth

    drkenneth Executive VIP

    Joined:
    Nov 13, 2008
    Messages:
    285
    Likes Received:
    176
    Occupation:
    Developer/Entrepreneur
    Location:
    USA
    What web browser are you using? Chrome?
     
  7. stoaf88

    stoaf88 Regular Member

    Joined:
    Nov 1, 2008
    Messages:
    243
    Likes Received:
    35
    No I tried it in firefox and IE

    Pm'ed u.
     
  8. stoaf88

    stoaf88 Regular Member

    Joined:
    Nov 1, 2008
    Messages:
    243
    Likes Received:
    35
    You are right

    I have a link on my site that DMR's

    It wont clear the referrer in IE or firefox

    How can I fix this?