PHP redirect - does it provide referral?

Discussion in 'PHP' started by pgiddy, Dec 6, 2006.

  1. #1
    I'm just starting to learn how to integrate some basic php with my sites. I was wondering if the following redirect code provides a referral to the site it leads to:

    
    <?php
    header( 'Location: http://www.siteimredirectingto.com' ) ;
    ?>
    
    Code (markup):
    Example:

    My page domain.com/redirect.php leads to siteimredirectingto.com. Can siteimredirectingto.com tell the visitors are coming from domain.com/redirect.php in the referral stats? Or would they just appear as direct links?

    Thanks,

    pgiddy
     
    pgiddy, Dec 6, 2006 IP
  2. IntelliGuy

    IntelliGuy Banned

    Messages:
    42
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    siteimredirectingto.com will see the the page which linked to /redirect.php as referer.
     
    IntelliGuy, Dec 7, 2006 IP
  3. Juls

    Juls Well-Known Member

    Messages:
    1,867
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    170
    #3
    yep so the answer is yet ;-)
     
    Juls, Dec 7, 2006 IP
  4. kkibak

    kkibak Peon

    Messages:
    1,083
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you want to prevent this, you can create a script called something like redirect.php and add the following to your robots.txt file:

    Disallow: redirect.php
     
    kkibak, Dec 8, 2006 IP