Jump to content

Html Code to show Different Banner based on Country of visitor


Ravsiyan

Recommended Posts

It's not simple. You can use Geolocation to figure out where your user is. You have to make a request to a geolocation database and compare the IP address.

From the Geolocation software article:

There are a number of free and paid subscription geolocation databases, ranging from country level to state or city—including ZIP/post code level—each with varying claims of accuracy (generally higher at the country level).

 

To send requests to one of the geolocation databases you can use PHP's cURL library.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...