• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 906
  • Last Modified:

How to implement Geolocation / Geo-Targeted banner ad display on my web site?

I'm looking for a solution either in perl or php to dynamically display geo-targeted ads based on user's IP.  I don't need a complete banner system, but ways for me to make customized implementation.

Is there any cost involved to determine user's location based on IP?


If user is located in Japan, I'll display local Japanese ads.

If in China and Hong Kong, I'll will display local Chinese ads.

Users from the rest of the world, I'll display English ads targeted globally.

I don't want to determine based on browser's language detection, but based on user's physically location and IP address.
1 Solution
Do you want to have control over the actual ads or not?

If not, then have you considered Google Adsense?
jay28leeAuthor Commented:
yes, i want to have full control of the ads on what exactly is being displayed.
Dave BaldwinFixer of ProblemsCommented:
Maxmind has some free version of their GeoIP code available.  http://www.maxmind.com/app/geolitecountry  Get the API and code that you can use.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now