Get refering Google search query

This is a discussion on Get refering Google search query within the Tech Board forums, part of the Community Boards category; Every now and then, I go into a website (through a Google search) that gives my exact search query in ...

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

    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?
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,659
    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,185
    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
    1,597
    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.
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

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, 01:57 AM
  3. Firefox and Google Search
    By DeepFyre in forum Tech Board
    Replies: 0
    Last Post: 01-16-2005, 09:28 AM
  4. Simple search program
    By colinuk in forum C Programming
    Replies: 6
    Last Post: 12-18-2004, 12: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, 12:24 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21