
If you need to deliver a custom tailored home page to a user visiting your Drupal website based on their actual physical location you need to need to match their ip addresses with their actual physical location. There are many third party services that provide this functionality and you need to use the API key provided by them in your Drupal application. If you need to know how to get IP address and Country code from an API key to be used in your Drupal application then read on to know more.