How do they do this? "People come here looking for:"

Discussion in 'Programming' started by NewTier, May 28, 2007.

  1. #1
    NewTier, May 28, 2007 IP
  2. SeLfkiLL

    SeLfkiLL Active Member

    Messages:
    85
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    50
    #2
    They probably get that from the HTTP referer header sent by browsers. For example, someone might search for something on Google and Google will lead them to that site, so the referer might come out as "http://www.google.com/search?hl=en&q=rapid+share&btnG=Google+Search"

    You can read more about the HTTP referer header here: http://en.wikipedia.org/wiki/Referrer
     
    SeLfkiLL, May 28, 2007 IP
  3. NewTier

    NewTier Notable Member

    Messages:
    2,201
    Likes Received:
    196
    Best Answers:
    0
    Trophy Points:
    250
    #3
    Wow, do you know any scripts that can parse the referer?
     
    NewTier, May 28, 2007 IP
  4. SeLfkiLL

    SeLfkiLL Active Member

    Messages:
    85
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    50
    #4
    Not off hand, but I'm sure it wouldn't be hard to create one.
     
    SeLfkiLL, May 29, 2007 IP
  5. ArcticPro

    ArcticPro Banned

    Messages:
    1,273
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I think you're right on the money. Tracking the header information to get the keyword and counting the number of them and storing it in their database.
     
    ArcticPro, May 29, 2007 IP