Is it possible to use geocode module for anonymous users? I would like to use it for redirecting anonymous to some pages depending on IP info.

Comments

zidong.c’s picture

AntiNSA’s picture

subscribe

frankcarey’s picture

should be able to store info with current table using uid of zero, and having an alternate lookup on the ip addr.

andrewsuth’s picture

+1 for this feature being part of the module.

Correct me if I am wrong, but I don't know if frankcarey's suggestion would work if there is more than 1 anonymous user logged in.

Perhaps it would be better to store the information for anonymous users in a session cookie. Does anyone have any better ideas on how this could be implemented?

frankcarey’s picture

a cookie might be good, logged in or not, but you should be able to store location info for the ipaddress itself since uid=0 wouldn't be unique. Cookies may be an issue on multi sites that share tables since the domains of each site may be different.

smartkl’s picture

Rather than place another cookie couldn't you just store the geo info in the php session that is already created by drupal?

Yorgg’s picture

Anyone managed to find a work-around or alternative?

chrisimg’s picture

Has anyone come up with anything?

danny englander’s picture

I found a module called "GoAway" it might not be right for some but good for others. For me I am just trying to identify and get rid of anonymous comment spammers which GoAway does. http://drupal.org/project/goaway