Hello I understand it is possible to block a country from viewing my website using apache, .htaccess. I was wondering if it is possible to block everyone from a specific City (namely the city of Flower Mound, in Texas) from accessing my website. If that's a no-go, how about blocking all of Texas?
There are GeoIP systems that try to retrieve cities and states for an IP address, like this one: http://www.hostip.info/ The data they retrieve isn't 100% correct though. It should be possible to make a Perl script or so that does such a lookup, and then hook that into Apache.
Try Maxmind's GeoLite City. It's free. http://www.maxmind.com/app/geolitecity I wrote a really basic geo targeting tutorial (for country locations) a while ago, it should also work for cities: http://www.thewebsiteprofessionals.com/geo-targeting.html