What is geotargeting?
Definition: Geographical targeting is a method to display content on a website based on a visitor's geographic location. The targeted content can be specific regional information, advertising for a local store, or news.Before the page is sent to the browser, the server determines where the request is coming from using a IP / geographic database. The database identifies the country, region and sometimes the city of the user's IP address on the visitor's computer, and then the server decides what to do.

Why is geotargeting important?
The importance of geotargeting can be illustrated by these three simple examples.

Advertising reaches everyone in the world via the web. So if you need to run an advertising campaign but you do not want the world to see it, or you want to change the information for certain parts of the country, you need to geotarget your website.

You can include demographic information from the geoip database that enhances its value to the ecommerce site.

Do you want your Website or App to Geotarget a market?
Requirements
- Subscribe to a IP address database
- Procure the worldwide IP addresses matched to zip codes or longs/lats.
- A database, like MySQL, SQL, Postgress, or Oracle
- a server-side programming language, like PHP, C, Java, perl or VB.Net.
- Optionally, a set of country flags.