locked
How to determine which country I'm. RRS feed

  • Question

  • User1849788689 posted

    Hi,

     How do we determine which country I'm... 

    Let's say I created the application  and i want to have a flag in upper right of the page... if the user browse my page it display the flag where he from... let's say he's browsing my page in america the American Flag will be displayed... if i browse my page here in the Philippines the Philippine Flag will be displayed.

     

     

    Regards

    Tuesday, May 4, 2010 10:07 PM

Answers

  • User-1247685454 posted

    You can do this by getting ip of the client by request.userhostaddress

    then find that which country is referenced by that ip and assign the flag

    you can find country's ip lists database by searching on net.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, May 5, 2010 12:01 AM

All replies