Forum: Ruby on Rails Best positioning of GEO IP identifier Apache or Ruby Code

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Sandeep G. (Guest)
on 2009-02-17 18:29

I am trying to make by site geo-intelligent. As in when a user comes
from US the default values on my site should become US specific and when
user is from any other place, I want to default to different values. So
its kinda US or Rest of US kinda thing.

I have learn't that we have two options - GeoIP ruby gem and Apache
Module GEOIP.
So the question is where is it best to place this check? If placed in
Apache, can we pass value to Mongrels?

If places in application controller, will the GEOIP.dat be opened to
lookup on every request? Is there a way where in it is pre-loaded on
memory and for each request I can just lookup the memory tree?

Please suggest.

Sandeep G
This topic is locked and can not be replied to.