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.
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
Comment #1
zidong.c commentedComment #2
AntiNSA commentedsubscribe
Comment #3
frankcarey commentedshould be able to store info with current table using uid of zero, and having an alternate lookup on the ip addr.
Comment #4
andrewsuth commented+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?
Comment #5
frankcarey commenteda 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.
Comment #6
smartkl commentedRather than place another cookie couldn't you just store the geo info in the php session that is already created by drupal?
Comment #7
Yorgg commentedAnyone managed to find a work-around or alternative?
Comment #8
chrisimg commentedHas anyone come up with anything?
Comment #9
danny englanderI 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