Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Aperture

macrumors 68000
Original poster
Mar 19, 2006
1,876
0
PA
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
 
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.
 
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. :)
 
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.