Display Visitors location on my site? How?

Discussion in 'Web Design' started by tywebb, Jun 30, 2009.

  1. tywebb

    tywebb Regular Member

    Joined:
    Dec 8, 2008
    Messages:
    226
    Likes Received:
    144
    Location:
    In the fairway
    Hi all,

    I have seen some sites where I visit them it shows my current location seamlessly integrated into the text of the webpage. You know like on those fake google cash blogs that say mrs x from "city name" has made $5000 a month!

    Anyway can someone please point me in the right direction on how to set that up on my site. I want it to display the city location of all the visitors and populate that into my page.

    I tried googling for an answer honestly, but i was having trouble coming up with a search string that could get me results.

    Thanks!
     
  2. rikenji

    rikenji Newbie

    Joined:
    Jul 23, 2009
    Messages:
    27
    Likes Received:
    0
    What you will need is a script. A script that will grab their IP.
    Once you have their IP it will translate it to the country / city whatever and you just need a small db.
    http://webnet77.com/scripts/geo-ip/index.html
    This script should help you get started.