View Full Version : Block IP Range of City
Aperture
Jul 30, 2008, 06:16 PM
I know it is possible to block access to a site based on a broad IP range. (of say a country) Would it be possible, though, to obtain an IP range of a city and block access accordingly?
Thanks
Queso
Jul 30, 2008, 06:19 PM
CIDR blocks (basically ranges of public IP addresses) are allocated to ISPs, not geographically. So unless the place you want to block has a very limited set of service providers you're not going to be able to just blacklist it.
angelwatt
Jul 30, 2008, 06:33 PM
I concur. I've walked down that path before, or at least similar path.
gauchogolfer
Jul 30, 2008, 06:36 PM
Are you trying to block Redmond or Cupertino?
Aperture
Jul 30, 2008, 06:37 PM
CIDR blocks (basically ranges of public IP addresses) are allocated to ISPs, not geographically. So unless the place you want to block has a very limited set of service providers you're not going to be able to just blacklist it.
Got ya. When I check my external IP online it always estimates my city correctly and I was just curious if there was a way to act on that information.
Are you trying to block Redmond or Cupertino?
Nope, I was mainly just curious if it could be setup. Nice guess, though. :)
TEG
Jul 30, 2008, 06:54 PM
The only accept ion is Qatar (I believe), in which the entire nation shares a single IP address.
TEG
Aperture
Jul 30, 2008, 07:00 PM
The only accept ion is Qatar (I believe), in which the entire nation shares a single IP address.
TEG
I thought a country had an "IP range" based on the ISPs available in said county because of this site. (http://www.ipaddresslocation.org/ip_ranges/get_ranges.php)
TEG
Jul 30, 2008, 07:06 PM
To some degree, Countries have IP ranges, but as we get closer to running out of IPv4 addresses, different parties in different countries trade them back and forth, muddying the waters.
TEG
vBulletin® v3.6.10, Copyright ©2000-2009, Jelsoft Enterprises Ltd.