Block IP Range of City

Discussion in 'Web Design and Development' started by Aperture, Jul 30, 2008.

  1. Aperture macrumors 68000

    Aperture

    Joined:
    Mar 19, 2006
    Location:
    PA
    #1
    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
     
  2. Queso macrumors G4

    Joined:
    Mar 4, 2006
    #2
    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.
     
  3. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #3
    I concur. I've walked down that path before, or at least similar path.
     
  4. gauchogolfer macrumors 603

    gauchogolfer

    Joined:
    Jan 28, 2005
    Location:
    American Riviera
    #4
    Are you trying to block Redmond or Cupertino?
     
  5. Aperture thread starter macrumors 68000

    Aperture

    Joined:
    Mar 19, 2006
    Location:
    PA
    #5
    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.

    Nope, I was mainly just curious if it could be setup. Nice guess, though. :)
     
  6. TEG macrumors 604

    TEG

    Joined:
    Jan 21, 2002
    Location:
    Langley, Washington
    #6
    The only accept ion is Qatar (I believe), in which the entire nation shares a single IP address.

    TEG
     
  7. Aperture thread starter macrumors 68000

    Aperture

    Joined:
    Mar 19, 2006
    Location:
    PA
    #7
    I thought a country had an "IP range" based on the ISPs available in said county because of this site.
     
  8. TEG macrumors 604

    TEG

    Joined:
    Jan 21, 2002
    Location:
    Langley, Washington
    #8
    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
     

Share This Page