PHP Redirect Question (about headers/referral info)

Discussion in 'PHP' started by kkibak, Jun 6, 2007.

  1. #1
    Hey,

    For the question, assume there are 3 different sites on different domains and IPs called A, B and C.

    I get a visitor to site A who clicks a link. I set that link up to go to a special page on site B that will immediately redirect the visitor to site C.

    
    <?php
    header( 'Location: http://www.siteC.coml' ) ;
    ?>
    
    Code (markup):
    So from the user's perspective, it seems like A-C, but in reality, it's A-B-C.

    My question, then, is if site C is owned by a third party (i.e. not me), can the owner of site C detect that the user originally came from site A via headers or referral info or anything like that? If so, how do you prevent this? I want to be able to send a visitor from A to C anonymously, and am essentially using site B as a proxy.
     
    kkibak, Jun 6, 2007 IP
  2. ansi

    ansi Well-Known Member

    Messages:
    1,483
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    100
    #2
    the http referer would be site b being as it is the one that directed them to site c.
     
    ansi, Jun 6, 2007 IP
  3. kkibak

    kkibak Peon

    Messages:
    1,083
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Cool, that's what I thought. Just to be clear, there's no tricky way site C can find out that part A was part of the chain?
     
    kkibak, Jun 6, 2007 IP
  4. ansi

    ansi Well-Known Member

    Messages:
    1,483
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    100
    #4
    i wouldn't think so, but there is a chance that i could be wrong.
     
    ansi, Jun 6, 2007 IP
  5. SedNaX

    SedNaX Active Member

    Messages:
    1,326
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    90
    #5
    no there isn't.. referrer information goes only 1 layer deep, that's site B
     
    SedNaX, Jun 7, 2007 IP