Thread: Get refering Google search query

  1. #1
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158

    Get refering Google search query

    Every now and then, I go into a website (through a Google search) that gives my exact search query in their content. Obviously, this information is being passed by Google to the destination page, but how?

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Simple. Google keeps a list a providers and the types of keywords associated with them or whatnot, and if it encounters certain search terms, it sends a request directly to the providers, and returns the results to your browser.

  3. #3
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    I'm thinking your answer is in your title: the referer header tells where you came from, and if you look at a Google URI you can see your query right in there.

  4. #4
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    if you look at a Google URI you can see your query right in there.
    I don't know why I didn't think of that. I didn't know the referring string contained get parameters, but I still should've thought of it.

    Thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Binary Search Help!
    By killpoppop in forum C Programming
    Replies: 12
    Last Post: 08-23-2009, 06:00 AM
  2. Search function not working fully
    By tabstop in forum C Programming
    Replies: 7
    Last Post: 12-04-2008, 02:57 AM
  3. Firefox and Google Search
    By DeepFyre in forum Tech Board
    Replies: 0
    Last Post: 01-16-2005, 10:28 AM
  4. Simple search program
    By colinuk in forum C Programming
    Replies: 6
    Last Post: 12-18-2004, 01:58 AM
  5. Pity I'm an MSU fan
    By Govtcheez in forum A Brief History of Cprogramming.com
    Replies: 14
    Last Post: 12-14-2004, 01:24 PM