Common Uses of IP Geolocation

Have you ever tried to visit Amazon.in from the US? Do you see how Amazon suggests you should go to Amazon.com as it’s the site which can serve you better? How do they do it?

Source