Submit Your Article Forum Rules

Results 1 to 3 of 3

Thread: Website access from different countries

  1. #1
    Junior Member
    Join Date
    Dec 2005
    Posts
    23

    Question Website access from different countries

    Is there a way that I am able to check a visitor's IP address, and based on the country that the visitor is from display different variations of a page? I have a site that is visited frequently by both Canadians and Americans. I have some content that is relevant only to Canadian visitors, plus then I can have only either the amazon.com or amazon.ca links for products, and not both.
    Or would it just be better to have the user choose and set a cookie indicating their country (US/Canada)?

    Thanks,
    Ron

  2. #2
    Senior Member
    Join Date
    May 2007
    Posts
    169

    Re: Website access from different countries

    Personally, I always hate being forced to see a page.
    What if a canadian visitor goes to your site, with the intention of sending a gift to a friend in the US?

    If you did want to go the auto-redirect route, you'd have to acquire a database of ip addresses, then write a script to detect, then route the visitors.
    But even in this case, it's not 100%
    ----Don't Call Me Brian----

  3. #3
    WebProWorld MVP DaveSawers's Avatar
    Join Date
    Dec 2006
    Location
    Lunenburg, Nova Scotia, Canada
    Posts
    760

    Re: Website access from different countries

    It's not hard to do and there are services out there you can use to do the lookup, but...

    Many Canadians who live away from the big cities use a satellite internet provider. The main supplier has their ground station near Washington DC. Consequently a look up of the IP address gets the country wrong.

    So it's only an initial guess on your part.
    Dynamic Software Development
    www.activeminds.ca

Similar Threads

  1. How can I check my website position for different countries
    By idandone in forum Search Engine Optimization Forum
    Replies: 20
    Last Post: 03-12-2010, 02:43 AM
  2. Prevent certain countries from accessing our website
    By AuctionHugh in forum Hosting Issues
    Replies: 4
    Last Post: 07-05-2007, 08:54 PM
  3. Can't access my own website
    By asya in forum Internet Security Discussion Forum
    Replies: 6
    Last Post: 08-02-2004, 02:29 PM
  4. access database access
    By tfinch in forum Web Programming Discussion Forum
    Replies: 6
    Last Post: 07-27-2004, 10:28 PM

Posting Permissions

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