Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determin Geographical location of IP address

Status
Not open for further replies.

rmfrance

Programmer
Nov 1, 2001
9
GB
I am using apache on a Win 2000 server and can't find any programmes out there that will allow me to determin the geographical location of an IP address so that I can pass a variable which will filter certain adverts for certain countrys.
Is there such a program that will allow me to make a php call on the win 2000 serve and get the results I require.
 
I've seen answers to this type of question which recommend basing your filter on the type of domain.

.uk = United Kingdom, etc.

Not sure about filtering by IP address, but I think that's not possible.
 
here is complete ipv4 address space allocation

for the RIPE ipv4 managed address space:

for the complete description u have to look at the web sites of regional internet registries (RIPE ARIN APNIC
but i think easier would be to use the gethostbyaddr($ip) function and resolve the tld from the hostname
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top