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?
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.
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.