Hi,
I too have been researching on something similar and here's what I've found :
- Using environment variables, you can find out things like user ip, hostname, referring link. See environment variables for more on this.
- from the hostname/ip it is possible to judge the user's country. Either thru domain extn (.in, .uk etc) or thru querying the internic server. But again not 100% foolproof
- Javascript gives u things like screen resolution, history etc.
- Perl has a module wherein if referring page is a search engine, you can find out the keywords that were used for the search etc.
If there's anything else that I can help on, let me know.
Regards
Nilesh