Detecting user country

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Detecting user country

    I am creating a page for a shop and there is a UK shop and an International
    shop. I have created both pages, each page has a link to the other as back up
    however I was wondering how would I go about getting the page to detect the
    users location so as to direct them to the relevant page UK/International.

    Thanks

    wiredsc1 Guest

  2. Similar Questions and Discussions

    1. Detecting when a user leaves a page
      Hello, I need (I think) to find a way of detecting when a user leaves a web-page; by hitting a link or the Back button, by typing into the...
    2. Country of user
      Hi, Is that possible to understand which country is the user from his or her GSM operator in smartphones with .NET Compact Framework? Any help...
    3. Module for Country/Country Codes Lists
      Hi! My name is Shlomi Fish and I am a co-developer of the WWW::Form module: http://search.cpan.org/~bschmau/WWW-Form-1.13/ Benjamin Schmaus...
    4. Country
      How can I view visitors country using php/apache?
    5. how to get the country ?
      from the IP of the request ?
  3. #2

    Default Re: Detecting user country

    I take it that if you're creating a shopping cart site, you would be working
    with a database using asp,/php/ coldfusion etc. If thats the case, all you need
    to do is download the IP to country database, use CGI.remote_addr to determine
    the IP address of the viewer, compare it with the database, so you know whether
    the viewer is from UK or not and accordingly put in a conditional statement
    that directs the viewer t othe correct page. You would need to update the IP to
    country database periodically and if you search, you'll find lots of sites
    giving the database for free.
    Incase you're not using a database, there are third party sites which do the
    work above for you and redirect your customer where you need to send them.
    Would be likely a paid service or they'll want to put in some advertisements. I
    did a search and found one such site
    [url]http://www.geobytes.com/GeoDirection.htm[/url]
    I am sure there are a lot more. I haven't used any of them and I prefer using
    the database in my own script.
    I am relatively inexperienced and hopefully someone who knows more can shed
    more light on this issue .
    Regards

    jasan3114 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139