frameset if referrer equals

Discussion in 'Programming' started by ntesla123, Oct 9, 2011.

  1. #1
    Is it possible to make a webpage show a specific frameset if the referrer of the visitor has a certain value?
     
    ntesla123, Oct 9, 2011 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    
    <?php
    if($_SERVER['HTTP_REFERER'] == 'someplace')
    {
      header('Location: http://www.yoursite.com/your-other-page-with-the-frameset.php');
    } else{
    //the whole rest of this page here
    }
    ?>
    
    PHP:
     
    Rukbat, Oct 12, 2011 IP