2

I would like the content in my website to change depending from where the request is coming(location). Would it be a nice idea to do it based on the IP Address? Is there any other way to do it?

Thanks :)

felix
  • 11,304
  • 13
  • 69
  • 95
  • Probably best to treat IP Geoloc as a good suggested default location than the *true* location. 'Net Point-of-Presence can often be tens/hundreds/thousands of miles from actual user location e.g. corporate proxies, mobile devices etc. – stephbu Jul 07 '10 at 20:57

1 Answers1

2

There's a number of options available for the handling of location. There's the W3C Geo API(discussion of browser support here),there's an example here using the Google AJAX API,. An overview of a number of options and their relative benefits is here

Community
  • 1
  • 1
robjmills
  • 18,438
  • 15
  • 77
  • 121