SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Zealot
    Join Date
    Apr 2005
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Find user location from IP address

    I am logging the IP addresses of visitors to my site and I would like to be able to have their location and ISP name provided as well. I've seen sites where you can enter an IP address and they give you this information. Does anyone know of a PHP script (or can give me an idea the direction to go in writing one) that would allow me to pull that information in dynamically rather than having to manually go and look it up?
    Thanks!

  2. #2
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    search for geoIP
    or something similar.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  3. #3
    SitePoint Enthusiast
    Join Date
    Dec 2008
    Location
    USA
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try geoselect. They have an iplocator functionality.
    Last edited by Plumber; Dec 18, 2008 at 06:21.

  4. #4
    SitePoint Addict wibble wobble's Avatar
    Join Date
    Dec 2008
    Posts
    242
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's called "geotargeting". There are plenty of API for it (some proably free) you could use, or you could make you own: http://www.ekstreme.com/geotargeting/

    Hope this helps.
    Find freelance jobs from all the major sites in one place:
    on twitter / on the web / twitter rss feed

  5. #5
    SitePoint Zealot
    Join Date
    Apr 2005
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by wibble wobble View Post
    That's called "geotargeting". There are plenty of API for it (some proably free) you could use, or you could make you own: http://www.ekstreme.com/geotargeting/

    Hope this helps.
    Thanks! That looks to be what I was searching for. I'll check it out and report back.

  6. #6
    hi galen's Avatar
    Join Date
    Jan 2006
    Location
    New Haven, CT
    Posts
    1,228
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •