WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-11-2007, 03:17 AM
WebProWorld Member
 

Join Date: May 2007
Location: Grimsargh, UK
Posts: 37
apwade RepRank 0
Default Ip address location

Is it possible in php to determine the location (i.e. country) of a user from the ip address or any other method ?

Cheers

Andrew
__________________
Discount shopping vouchers
Reply With Quote
  #2 (permalink)  
Old 07-11-2007, 05:31 AM
NetProwler's Avatar
WebProWorld Member
 

Join Date: Jan 2007
Posts: 46
NetProwler RepRank 0
Default Re: Ip address location

Sure. There are ready PHP modules and databases available commercially. Try this as an example: MaxMind - GeoIP | IP Address Location Technology
Reply With Quote
  #3 (permalink)  
Old 07-30-2007, 01:03 PM
kgun's Avatar
WebProWorld 1,000+ Club
 

Join Date: May 2005
Location: Norway
Posts: 5,131
kgun RepRank 3kgun RepRank 3
Default Re: Ip address location

Here is a related thread:

MySQL vs Flat File? Seriously?

Note the php.net's flat file database that is mentioned in that thread.

Here is simple HTML code:

<!-- Map visitor's IP -->
<TABLE VALIGN="top" CELLPADDING=0 CELLSPACING=0 BORDER=0
BACKGROUND="http://map.DNSstuff.com/tools/mappiece.ch?name=me" WIDTH=310 HEIGHT=155>
<TR><TD VALIGN=top><A HREF="http://www.DNSstuff.com/info/geolocation.htm">
<IMG SRC="http://map.DNSstuff.com/tools/mappiece.ch?name=dot" WIDTH=310 HEIGHT=155></A></TD>
</TR>
</TABLE>

That give the result on this

Logistics

page.

Last edited by kgun : 07-30-2007 at 01:12 PM.
Reply With Quote
  #4 (permalink)  
Old 08-06-2007, 06:00 PM
WebProWorld Pro
 

Join Date: Jun 2004
Location: The Barrens of NE Ohio
Posts: 234
nottheusual1 RepRank 0
Default Re: Ip address location

Try these guys - we use them to do just what you want - there are tools available, and if you write your own, they have a downloadable database. We use it to block entire CIDR blocks from some Email servers that have no reason to receive Email from certain parts of the world.

FREE Updated IP to Country Database
__________________
:not_the_usual1
[you decide]
________________
All in my opinion, which, when combined carefully with a $1 bill, gets you a cup of coffee at the corner store.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Location vs Value putzart Ad Space Buy and Sell 0 02-20-2007 11:45 AM
Looking for Location Editors (UK) fridayteam Services for Sale/Hire 0 04-26-2006 01:20 PM
Server location onelife Google Discussion Forum 3 10-03-2005 02:03 AM
Forum Location and SEO chrison600 Search Engine Optimization Forum 3 09-16-2005 02:06 PM
Base Location tag Derek Davis Google Discussion Forum 1 03-08-2005 05:03 PM


Search Engine Optimization by vBSEO 3.2.0