SitePoint Sponsor

User Tag List

Results 1 to 16 of 16

Thread: HTTP Referrer?

  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2002
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    HTTP Referrer?

    Is there a function for determining the "referrerr" page? I browsed through the function list and didn't see anything, but was probably looking in the wrong place, and a search for "referrer" got me nowhere. Thanks in advance.
    Nate Baldwin
    mindpalette.com

  2. #2
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can find it in the $_SERVER array, it's $_SERVER['HTTP_REFERER']

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  3. #3
    SitePoint Enthusiast
    Join Date
    Jun 2002
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile

    Sean to the resuce again - thanks! :-)

    (probably would have helped out in the search if I had spelled "referer" right, eh?)
    Nate Baldwin
    mindpalette.com

  4. #4
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No problem. BTW - it's actually spelt referrer, but some typo occurred in the spec and now it's always spelt referer for things like this

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  5. #5
    SitePoint Enthusiast
    Join Date
    Jun 2002
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Good to know - now I don't feel quite as stupid. Have a good what's-left-of-the-weekend.
    Nate Baldwin
    mindpalette.com

  6. #6
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  7. #7
    does not play well with others frezno's Avatar
    Join Date
    Jan 2003
    Location
    Munich, Germany
    Posts
    1,391
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: HTTP Referrer?

    get referer
    you should bear in mind that you cannot rely on the referer info you get.
    We are the Borg. Resistance is futile. Prepare to be assimilated.
    I'm Pentium of Borg.Division is futile.Prepare to be approximated.

  8. #8
    SitePoint Enthusiast
    Join Date
    Jun 2002
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yep, thanks.
    Nate Baldwin
    mindpalette.com

  9. #9
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yeah, for one, if you use Norton's firewall and perhaps others, Referer is changed to Weferer and the url encrypted....

    Aaron
    Aaron Brazell
    Technosailor



  10. #10
    ********* Genius Mike's Avatar
    Join Date
    Apr 2001
    Location
    Canada
    Posts
    5,458
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I use Norton Firewall, and all sites I visit detect my referrer.
    Mike
    It's not who I am underneath, but what I do that defines me.

  11. #11
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmmm. Must have been a setting I had enabled
    Aaron Brazell
    Technosailor



  12. #12
    The short answer is yes... Herbster's Avatar
    Join Date
    Oct 2001
    Location
    Bay City, Oregon
    Posts
    715
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Under what circumstances is the referrer (or referer) not reported?

    Someone mentioned a firewall. Will that block the referer? The reason I'm asking is I see a lot of entries in my server log for internal, un-SE-indexed pages with a blank referer field.

    tia

  13. #13
    Making a better wheel silver trophy DR_LaRRY_PEpPeR's Avatar
    Join Date
    Jul 2001
    Location
    Missouri
    Posts
    3,428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well Herbster, the referrer will be blank if they came to your site directly (typing in or a bookmark) and not from a link somewhere. is that what you wanted to know?
    - Matt ** Ignore old signature for now... **
    Dr.BB - Highly optimized to be 2-3x faster than the "Big 3."
    "Do not enclose numeric values in quotes -- that is very non-standard and will only work on MySQL." - MattR

  14. #14
    The short answer is yes... Herbster's Avatar
    Join Date
    Oct 2001
    Location
    Bay City, Oregon
    Posts
    715
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by DR_LaRRY_PEpPeR
    well Herbster, the referrer will be blank if they came to your site directly (typing in or a bookmark) and not from a link somewhere. is that what you wanted to know?
    Nope. LOL. I can understand that for pages that are indexed (as in public and subject to being included in an email) or might be bookmarked, but I may see several pages clicked by the same person all with the referrer blank - even when the referrer should be my site. User Agent is reported, but not the Referer. I guess they could be cutting and pasting the links into another browser window. Just seemed odd and I wondered if there was a technical reason for it. Thanks for the reply, though.
    Last edited by Herbster; Mar 24, 2003 at 00:20.

  15. #15
    Making a better wheel silver trophy DR_LaRRY_PEpPeR's Avatar
    Join Date
    Jul 2001
    Location
    Missouri
    Posts
    3,428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    oh, ok. well, then maybe they're using some "privacy" or firewall software that stops the sending of the referrer. stupid if you ask me. oh yeah, it's a big deal -- the site/server will always know my IP address, but i don't want it to know what page i came to it from. he he.

  16. #16
    The short answer is yes... Herbster's Avatar
    Join Date
    Oct 2001
    Location
    Bay City, Oregon
    Posts
    715
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by DR_LaRRY_PEpPeR
    oh yeah, it's a big deal -- the site/server will always know my IP address, but i don't want it to know what page i came to it from. he he.
    Chronic porn surfers maybe.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •