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

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
    Home Page:
    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
    Home Page:
    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
    Home Page:
    Cmon guys input please...

    -q3ick
     
  5. vivalafeva

    vivalafeva Jr. VIP Jr. VIP Premium Member

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