1. This website uses cookies to improve service and provide a tailored user experience. By using this site, you agree to this use. See our Cookie Policy.
    Dismiss Notice

Double Meta refresh question...

Discussion in 'BlackHat Lounge' started by q3ick, Nov 17, 2008.

  1. q3ick

    q3ick Regular Member

    Joined:
    Oct 27, 2008
    Messages:
    414
    Likes Received:
    115
    Occupation:
    Full Time Student -- Working On My Masters In Busi
    Location:
    Places
    Ok so i have the following PHP file.

    Code:
    <?php 
    $page0 = "http://www.iannex.org";
    $referer = $_SERVER['HTTP_REFERER'];
    $mypages = array($page0);
    $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=rd1.php">";
        }
    ?>
    First off is this done right?

    Second, to enable the double meta refresh. Do I only have to drop it into the folder that the page is in? or do I add it to the .HTML file some how.

    Please help

    -q3ick
     
  2. stylesb

    stylesb Regular Member

    Joined:
    Nov 7, 2008
    Messages:
    272
    Likes Received:
    31
    Location:
    Straight Outta Compton
    is iannex.org your page or your offers page?
     
  3. q3ick

    q3ick Regular Member

    Joined:
    Oct 27, 2008
    Messages:
    414
    Likes Received:
    115
    Occupation:
    Full Time Student -- Working On My Masters In Busi
    Location:
    Places
    My page..Bump please help.

    -q3ick
     
  4. q3ick

    q3ick Regular Member

    Joined:
    Oct 27, 2008
    Messages:
    414
    Likes Received:
    115
    Occupation:
    Full Time Student -- Working On My Masters In Busi
    Location:
    Places
    Cmon guys input please...

    -q3ick
     
  5. vivalafeva

    vivalafeva Supreme Member

    Joined:
    Sep 16, 2008
    Messages:
    1,490
    Likes Received:
    723
    a DMR requires 2 files placed on 2 diff pages, the first one refreshes the the second, the second refreshes to the final page.