SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot somecallmejosh's Avatar
    Join Date
    Sep 2006
    Location
    CT
    Posts
    153
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Presentation Change Based on IP

    Does anyone know if javascript (or any other scripting language - client or server side) can be used to capture a visitor's IP, compare that IP to local ISP IP ranges, and display a different banner/flash presentation/images/etc to that demographic? We want to give regional presentations without having to create multiple versions of the site, using multiple domains, etc. Seems complex, but may be worth the effort.

  2. #2
    SitePoint Wizard
    Join Date
    Nov 2004
    Location
    Nelson BC
    Posts
    2,310
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There are many geo-locator webservices available, most of which have code for popular server languages. This will give you the approximate geo location of each visitor to your site (and you can take action based on that data).

    The majority are pay/subscription based services. Here is one I found:
    http://www.ip2location.com/

  3. #3
    SitePoint Zealot somecallmejosh's Avatar
    Join Date
    Sep 2006
    Location
    CT
    Posts
    153
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thank you

    Jim,

    Thanks for the tip and the link. I'll most certainly check it out.

    Josh


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
  •