Apache $http_refferer question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sebastien

    Apache $http_refferer question

    hi, all

    i need your help, on about http_referrer in my script.

    when a visitor comes from another server i whish intercept the url where
    he come from;

    i've made some test with a simple echo $_server[http_referrer] and this
    output anything if the last link is on same server of my page but don't
    from anyother server.

    how can made an universal intercepter with the Http_referrer property


    thank for your helps.

    Sebastien

  • Pedro Graca

    #2
    Re: Apache $http_refferer question

    Sebastien wrote:[color=blue]
    > i've made some test with a simple echo $_server[http_referrer] and this
    > output anything if the last link is on same server of my page but don't
    > from anyother server.[/color]

    it's $_SERVER['HTTP_REFERER'] and the manual

    has some info you should take into account :)


    <quote>
    'HTTP_REFERER'

    . The address of the page (if any) which referred the user agent to
    the current page. This is set by the user agent. Not all user
    agents will set this, and some provide the ability to modify
    HTTP_REFERER as a feature. In short, it cannot really be trusted.
    </quote>

    --
    ..sig

    Comment

    Working...