Forum Moderators: coopster
[google.com...]
[hotbot.com...]
[looksmart.com...]
[alltheweb.com...]
Most pass back the query as q=* , but not always. In which case, you'd have to setup definitions for each engine.
-panic
// make all on one line
<script TYPE="text/javascript">
document.write("
<script type=\"text/JavaScript\" src=\"http*//your.domain/js.php
?URL=
"+escape(document.URL
?server1_url=document.URL
:server1_url="UnKnown")
+"&REF=
"+escape(document.referrer
?server1_ref=document.referrer
:server1_ref="UnKnown")
+"\")\"></"+"script>");
</script>
////////
Server2 js.php file:
<?php
header("Content-type: application/x-javascript\n\n");
foreach ($GLOBALS as $key=>$value)
{
if($key == "URL")
// The key 'URL' will contain the server1 index page
// URL and any variables/query string on the URL line
if($key == "REF")
// The key 'REF' will contain the referrer to the
// server1 index page if known and any variables/querys
// string
}
?>
////////
This is part of my data that I'm using to parse by,
I parse for up to 3 querys.
Format:
domain¦ignore this column¦1st parse¦2nd parse¦3rd parse¦
translate.google.com¦googlr.ref¦u¦q¦¦
216.239.32.1-216.239.63.1¦google.ref¦q¦query¦as_q¦
most google¦google.ref¦q¦query¦as_q¦
//
most hotmail¦hot-mail.ref¦hm___action "=URL"¦hm___action¦¦
//
abcsearch.com¦abcsearch.ref¦Terms¦¦¦
about.com¦about.ref¦terms¦¦¦
alexa.com¦alexa.ref¦q¦¦¦
allsearchengines.co.uk¦other.ref¦query¦¦¦
allthesites.com¦allthesites.ref¦query¦¦¦
alltheweb.com¦allthewe.ref¦q¦query¦¦
altavista.com¦altvista.ref¦q¦¦¦
aol.com¦aol.ref¦query¦¦¦
ask.co.uk¦askjeeve.ref¦qry¦pt¦ask¦
ask.com¦askjeeve.ref¦qry¦pt¦ask¦
askjeeves.com¦askjeeve.ref¦qry¦pt¦ask¦
atomica.com¦atomica.ref¦s¦¦¦
att.net¦att-net.ref¦gwd¦¦¦
bbc.co.uk¦bbccouk.ref¦q¦¦¦
bellsouth.net¦bellsouth.ref¦string¦¦¦
cari.com.my¦cari-com.ref¦q¦¦¦
cometsystems.com¦cometsys.ref¦qry¦¦¦
commonname.com¦commonname.ref¦cnqry¦¦¦
directhit.com¦askjeeve.ref¦qry¦pt¦ask¦
dmoz.org¦dmoz-org.ref¦search¦¦¦
dogpile.com¦dogpile.ref¦q¦¦¦
earthlink.net¦earthlnk.ref¦q¦¦¦
eircom.net¦eircom.ref¦search¦¦¦
exalead.com¦exalead.ref¦q¦¦¦
excite.com¦excite.ref¦qkw¦¦¦
fares.net¦fares.ref¦search¦¦¦
find.opasia.dk¦opasia.ref¦q¦¦¦¦
findit.com¦findit.ref¦search¦¦¦
hotbot.com¦hotbot.ref¦query¦¦¦
icq.com¦google.ref¦q¦query¦as_q¦
innerprise.net¦innerprise.ref¦search¦¦¦
iwon.com¦iwon.ref¦searchfor¦¦¦
ixquick.com¦ixquick.ref¦query¦¦¦
kartoo.com¦kartoo.ref¦q¦¦¦
looksmart.com¦looksmart.ref¦key¦¦¦
lukol.com¦lukol.ref¦p¦¦¦
lycos.co.uk¦lycos.ref¦query¦MT¦¦
lycos.com¦lycos.ref¦query¦MT¦¦
lycos.de¦lycos.ref¦query¦MT¦¦
mamma.com¦mamma.ref¦query¦¦¦
metacrawler.com¦metacraw.ref¦q¦general¦¦
monstercrawler.com¦m-crawl.ref¦qry¦¦¦¦
msn.com¦msn.ref¦q¦¦¦
msnusers.com¦msn.ref¦q¦¦¦
munky.com¦munky.ref¦term¦¦¦
mysearch.com¦mysearch.ref¦searchfor¦¦¦
myway.com¦myway.ref¦searchfor¦¦¦
netscape.com¦netscape.ref¦query¦search¦¦¦
ninemsn.com.au¦ninemsn.ref¦q¦¦¦
o2w.d2g.com¦o2w.ref¦searchterm¦¦¦
openfind.com.tw¦openfind.ref¦q¦¦¦
openfind.com¦openfind.ref¦q¦¦¦
overture.com¦overture.ref¦Keywords¦¦¦
passagen.se¦passagen.ref¦q¦¦¦
scrubtheweb.com¦scrubtheweb.ref¦q¦keyword¦¦¦
search.com¦search.ref¦q¦¦¦
searchhippo.com¦hippo.ref¦q¦¦¦
sidesearch.lycos.com¦lycos.ref¦query¦¦¦
sympatico.ca¦sympatico.ref¦query¦¦¦
teoma.com¦teoma.ref¦t¦q¦¦
websearch.com¦websearch.ref¦qkw¦¦¦
websearch.cs.com¦cs.ref¦query¦¦¦
wisenut.com¦wisenut.ref¦q¦¦¦
xtramsn.co.nz¦xtramsn.ref¦q¦¦¦
yahoo.com¦yahoo.ref¦p¦va¦¦
BTW I'm 'not' a PHP or JS person.
GGG
google.ref contains info for the 'selm' and 'th' query
and default results.
The 'selm' query:
¦Google Groups
¦From:
¦Subject:
¦Newsgroups:
¦Date:
The 'th' query:
¦Google Groups
¦Subject:
¦Newsgroups:
And the results to go with the default querys:
groups.google.uk/¦Google Groups, United Kingdom
.google.uk/¦Google Search, United Kingdom
etc.
like panic said
tons of values/setup definitions for each engine.
working on it :)
GGG