1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Geo Targeting certain code to users by certain cities?

Discussion in 'PHP' started by tdd1984, Feb 11, 2012.

  1. #1
    Is there a script out there. Where I can add it to my page, so if someone visits my page from say Chicago. It will not activate that code on my site. I won't to only present certain code on my site to certain areas?
     
    tdd1984, Feb 11, 2012 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    There are sites that gives the option to use API to read information about the IP address of the visitor wich mostly contains COUNTRY, STATE, POSTAL, INET PROVIDER

    its not just adding a tiny script to your page, its much more than that. And if you use a API you should save the information to your own database coz most API's don't allow lots of requests a day (most accept about 1000 requests a day).

    try googling with API GEO PHP or something :)
     
    EricBruggema, Feb 14, 2012 IP
  3. Estevan

    Estevan Peon

    Messages:
    120
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    0
    #3
    hello

    use http://www.maxmind.com/ you download files and run in your server no limited a x queries per day

    Best
     
    Estevan, Feb 14, 2012 IP
  4. ogah

    ogah Member

    Messages:
    60
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #4
    you can use maxmind.com or ip2location.com they have huge database
     
    ogah, Mar 5, 2012 IP