faqts

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

8 of 19 people (42%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

how can we get the country name from which a client requests a web page

May 12th, 2008 20:42
i can do it, Crick Dougles, Denny De La Haye, devunoori kishan,


You could try doing a lookup on the REMOTE_ADDR part of the environment
variables from the HTTP transaction and then parsing it for TLD, but
this isn't particularly foolproof.  For instance, parsing my home IP
address would probably get you .btinternet.com which would either make
you think I'm in America (if you're an American and are under the
mistaken impression that .com belongs to the USA) or make you think I'm
international in scope, which is obviously silly.  If I were to browse
from work however, you should be able to track me back to a .ac.uk
domain, which would let you know which country I was in.
http://www.jaipurweddingcards.com
http://www.stupidarticles.com
http://www.halazona.com
http://www.shikapika.com
http://www.stakoza.com
http://www.uploadarticles.com
http://www.ganazat.com
http://www.damima.com
http://www.tarabiza.com
http://www.articlesxarticles.com
http://www.articlesfreedirectory.com