1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

is it possible to ban an entire city's IP ranges?

Discussion in 'Web Design' started by bobbys, Sep 11, 2009.

  1. bobbys

    bobbys Regular Member

    Joined:
    Oct 29, 2008
    Messages:
    367
    Likes Received:
    412
    Occupation:
    Google Assault
    Location:
    127.0.0.1
    Excuse my ignorance on the topic, but if you have a website and want to ban say..an entire city in the US from accessing it, would such a thing be possible?

    Thanks ahead of time to anyone who takes the time to answer.
     
  2. orangejuice

    orangejuice Registered Member

    Joined:
    Jul 25, 2009
    Messages:
    54
    Likes Received:
    16
    Specific cities maybe difficult with free databases. You can try the free one provided my Maxmind (PHP/Perl etc) or a paid service from a website like ip2location dot com.