Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Severvariables

Hi,

As you know it is not possible to detect the screen resolution of the visitor (height/width) or if cookies are turned off.
But I found a site where they sell 2 different programs that will detect quite a few things about visitors OS and browser.

Have a look at this site:

http://www.cyscape.com/showbrow.aspx?bhcp=1

The first program they sell its called BrowserHawk and can be found here:

http://www.cyscape.com/products/bhawk

The second one its called CountryHawk and can be found here:

http://www.cyscape.com/products/chawk

The reason Im asking this question is that I am very much interested in detecting visitors screen resolution, if cookies are turned off or not, if iframe is accepted and something about the country.
These 2 programs require that you run your own server (or so I think) and I wonder how they manage to detect all this information, and what I need to achieve the same thing. Are there any scripts/apps I can place on the server at my web host which will do all that?

P.S. If you don't know very much about this just tell whatever you consider it might help me in finding a solution.

Thanks in advance
[1298 byte] By [gvtolea] at [2007-11-11 7:40:45]
# 1 Re: Severvariables
Try putting the following in an .aspx page and upload it to your server, then browse to it: http://www.freevbcode.com/ShowCode.asp?ID=5615
Phil Weber at 2007-11-11 23:13:34 >
# 2 Re: Severvariables
Hi Phil,

Maybe I'm doing somethig wrong but all I'm getting is this:

http://www21.brinkster.com/gvtolea/doesnt_work.aspx

i.e. no screen coordinates, no cookies, iframe aso.

Please have another look att the link I mentioned in my question, but you have to be patience so that the site manage to gather information on your browser. Here is the link again, just click on it and wait a couple of seconds:

http://www.cyscape.com/showbrow.aspx?bhcp=1
gvtolea at 2007-11-11 23:14:45 >
# 3 Re: Severvariables
As far as I know, you'll have to use JavaScript on the client to obtain any of the information not returned in the ServerVariables collection. See http://www.developerfusion.co.uk/show/2443/ for more information.
Phil Weber at 2007-11-11 23:15:39 >