Actually it should be possible to calculate using just HTTP_REFERER, for example , if your page came up when someone searched for capuccino on google , the http referer would be like this : http://www.google.com/search?q=capuccino or in altavista http://www.altavista.com/search?q=capuccino some search engines i have seen use a "query=" querystring.... you could probably parse out all the q= and query= variables from HTTP_REFERER to get your keywords... ã$hØK hãRïhîÃñ