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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
703682e5658453d83f692fddb5607096?d=identicon&s=25 Sandeep Gudibanda (sgudibanda)
on 2009-02-17 17:29
Hi,

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.

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