Serving different content to users from different geographic regions

Discussion in 'PHP' started by fcmisc, Mar 19, 2006.

  1. #1
    Hi,

    The Amazon Associate feature of only serving up ads to a particular country is hindering my sales.

    Using PHP, how can I detect a user's country, and therefore serve them different Amazon ads?

    Thanks,

    fcmisc.
     
    fcmisc, Mar 19, 2006 IP
  2. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #2
    I believe you need to use ip2location, or geoip
     
    frankcow, Mar 20, 2006 IP
  3. sketch

    sketch Well-Known Member

    Messages:
    898
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    148
    #3
    Both of which will cost you money... there's is no function in any programming language (that I know of) that can tell you where an IP is geographically located.
     
    sketch, Mar 20, 2006 IP
  4. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #4
    not necessarily. You can download the ip2location database for free, if you're technically capable of programming your own code for using that data
     
    frankcow, Mar 20, 2006 IP
  5. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #5
    mad4, Mar 20, 2006 IP