restrict access by city / country ?

3duardo - February 21, 2009 - 16:38

How could I allow only members of a particular city or country to become registered members of my site?

If you mean really identify

cog.rusty - February 21, 2009 - 17:48

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

3duardo - February 21, 2009 - 20:24

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

cog.rusty - February 21, 2009 - 20:37

I may be wrong of course. I just didn't believe that IP assignment could be so tidy.

Okay

NancyDru - August 28, 2009 - 15:31

Register_country is now available for 6.x; it does use the Ip2cc API.

GeoUser module?

grobemo - February 21, 2009 - 21:12

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.

 
 

Drupal is a registered trademark of Dries Buytaert.