How to cloak all visitors with referer?

Discussion in 'PHP' started by asbestos, Dec 23, 2009.

  1. #1
    speaking shortly i want to redirect all visitors who have referer but all the ones without referer i want to see the usual page. i want to do it in php, i had this code and was preety simple but now cant find it so help plz
     
    asbestos, Dec 23, 2009 IP
  2. vinoth.t

    vinoth.t Peon

    Messages:
    156
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It might be wrong.
    Check if the referrer url is not null then do redirection else process it.
     
    vinoth.t, Dec 23, 2009 IP
  3. creativeGenius

    creativeGenius Well-Known Member

    Messages:
    273
    Likes Received:
    5
    Best Answers:
    1
    Trophy Points:
    120
    #3
    <?php

    if( isset($_SERVER['HTTP_REFERER']) )
    {
    go here
    }
    else
    {
    no referrer go here
    }

    ?>
     
    creativeGenius, Dec 23, 2009 IP