Asp classic county specific display

Discussion in 'C#' started by funny fella, Oct 28, 2009.

  1. #1
    Hello,

    Does anyone know if it’s possible to display specific information depending on the users’ country of origin?

    For example the user is surfing from US then the site says
    “Hi you’re in the US”

    And if they are surfing from the UK then “Hi you’re in the UK”

    And so on.

    Thanks for any ideas!
     
    funny fella, Oct 28, 2009 IP
  2. MarkusJ_NZ

    MarkusJ_NZ Well-Known Member

    Messages:
    240
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #2
    To be safe you would probably have to use the users IP and then look up the GeoCode (Maxmind database is free) to get the country.

    Regards
    Mark
     
    MarkusJ_NZ, Oct 29, 2009 IP
  3. camjohnson95

    camjohnson95 Active Member

    Messages:
    737
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Yes you can even narrow it down to an approximate region and even the correct town, but you wouldn't do this unless it was necessary.
    There is components available that will do this for you (that you can pay for) or it is possible to do it yourself by looking up the address with a WHOIS call and getting the info from the correct fields in the response. Check this post: http://revenmerchantservices.com/page/Your-own-Ip-to-location-.aspx

    But this is in ASP.NET/C# and I don't know how to do this with ASP Classic unfortunately, but hopefully someone else might.
     
    Last edited: Oct 30, 2009
    camjohnson95, Oct 30, 2009 IP