Posted by 3duardo on February 21, 2009 at 4:38pm
How could I allow only members of a particular city or country to become registered members of my site?
How could I allow only members of a particular city or country to become registered members of my site?
Comments
If you mean really identify
If you mean really identify the user's country by IP and not just ask them to say that they are from that country, there is the http://drupal.org/project/register_country, only for Drupal 5 at the moment (maybe you could submit an issue for D6 or help out). But I wouldn't expect 100% correct identification.
You might also be able to use the http://drupal.org/project/ip2cc API module somehow.
Identifying the city by IP... I don't think it is possible.
Thanks for the info. I'll
Thanks for the info. I'll look into those options.
I wonder how Google gets all that data - down to the city level?
Thanks again.
Eduardo
I may be wrong of course. I
I may be wrong of course. I just didn't believe that IP assignment could be so tidy.
Okay
Register_country is now available for 6.x; it does use the Ip2cc API.
NancyDru
GeoUser module?
You might also try the GeoUser module.
But beware that it wouldn't be terribly hard for people to circumvent this by going through a proxy server.