Using geoip per continent instead of country possible?

Hello guys…

I need to perform a specific action for Asia countries… is there
anyway to use GeoIP per continent instead of specifying a seperate IF
for every Asian country?

Thanks
–Mike

On Sun, Mar 25, 2012 at 04:20:16AM +0000, Micheal W. wrote:

Hello guys…

I need to perform a specific action for Asia countries… is there anyway to use
GeoIP per continent instead of specifying a seperate IF for every Asian country?

You can convert GeoIP base to nginx geo module custom map.
Please read this:

–
Igor S.

untested, but would this work?

map $geoip_city_country_code $continent {
RUS Asia;
…
}