WebSession details

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

WebSession details

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:28 pm

by Stephen Persson >> Wed, 13 Sep 2000 2:52:56 GMT

Hi,
Does anyone have any ideas on how to find out what country a web request came from?
Our ISP gives us info on our web site that includes how many hits etc.. but they also give us a break down of the countries that browsed the site - 80% New Zealand, 12% Australia etc..
Can I find out this sort of info from a Jade web session - does one of the getServerVariable functions give this?
(Does anyone actually have a complete list of all the getServerVariable functions - I thought WinNT gave a full list but I've been informed of some others that weren't on the list)

Thanks
Stephen

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: WebSession details

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:28 pm

by Craig Shearer >> Wed, 13 Sep 2000 20:16:10 GMT

I would have thought that your ISP would be doing some sort of DNS lookup on the IP Address of the requestor to find the domain that the request came from, and hence the country. I'm pretty sure there ISN'T a Server Variable to get this!

Craig.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: WebSession details

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:28 pm

by Kevin Alcock >> Wed, 13 Sep 2000 22:18:17 GMT

Stephen,

The server variables "REMOTE_ADDR" and "REMOTE_HOST" will give you what you want. "REMOTE_ADDR" is the remote ip address and "REMOTE_HOST" is the remotes hosts name, if the server has that information.

Have fun,

Kevin
--
kalcock@cardinal.co.nz
Cardinal Consultants
Ph: +64 3 365 2266 x3086

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: WebSession details

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:28 pm

by Don Rae >> Thu, 14 Sep 2000 0:44:59 GMT

You'll find your ISP is using WebTrends (or similar product) to garner that information from the IIS logs. If you need to know about WebTrends, do get in touch.

Don Rae
drae@discoverjade.com

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: .com, .co.nz, .co.uk, .com.au

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:28 pm

by JADE Kid - Ray Hidayat >> Sun, 17 Sep 2000 6:51:03 GMT

As far as I know you can use the extensions to the domain name.
...com is the US of A
...co.nz is NZ
...co.uk is the UK
and .com.au is obviously Australia.

--
Ray Hidayat
JADE Kid - 2000
www.jadekids.com

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: WebSession details

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:28 pm

by Philip >> Fri, 29 Sep 2000 3:48:36 GMT

You should be able to use the remote_host to find out the host name which will come back like this-
Polaris2K@ZeroLimit-24573.vic.bigpond.net.au - the last 2 letters should be able to tell you the country (au being Australia), you're ISP must be using a system to process those names. Of course if you get something like - user@203.97.299.12864 you've got the ip and will have to covert that to a host name (or get neotrace, enter the ip and watch as it points out the route it goes thoguth to find the country).

Philip

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: WebSession details

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:28 pm

by JADE Kid - Ray Hidayat >> Sun, 1 Oct 2000 5:12:59 GMT


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 3 guests