C Board  

Go Back   C Board > Community Boards > Tech Board

Reply
 
LinkBack Thread Tools Display Modes
Old 10-18-2009, 05:32 PM   #1
Unregistered User
 
Yarin's Avatar
 
Join Date: Jul 2007
Posts: 925
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?
__________________
GCC 4.4.0, Code::Blocks 8.02, Fedora 11, x64
Yarin is offline   Reply With Quote
Old 10-18-2009, 05:37 PM   #2
Guest
 
Sebastiani's Avatar
 
Join Date: Aug 2001
Posts: 4,923
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.
Sebastiani is offline   Reply With Quote
Old 10-18-2009, 05:40 PM   #3
and the Hat of Guessing
 
tabstop's Avatar
 
Join Date: Nov 2007
Posts: 8,740
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.
tabstop is offline   Reply With Quote
Old 10-19-2009, 09:55 AM   #4
Unregistered User
 
Yarin's Avatar
 
Join Date: Jul 2007
Posts: 925
Quote:
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.
__________________
GCC 4.4.0, Code::Blocks 8.02, Fedora 11, x64
Yarin is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Binary Search Help! killpoppop C Programming 12 08-23-2009 06:00 AM
Search function not working fully elsewhere C Programming 7 12-03-2008 10:49 PM
Firefox and Google Search DeepFyre Tech Board 0 01-16-2005 10:28 AM
Simple search program colinuk C Programming 6 12-18-2004 01:58 AM
Pity I'm an MSU fan Govtcheez A Brief History of Cprogramming.com 14 12-14-2004 01:24 PM


All times are GMT -6. The time now is 11:35 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

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