homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

Block by .htaccess

 7:43 pm on Mar 3, 2009 (gmt 0)

I was wondering if someone could point me in the right direction. I'm wondering if it is possible to block the entire state of Georgia from viewing my website. Is there a way to do this within the .htaccess file? Either by zip code, or IP address range?

I know it wont be 100% accurate, but it should do what I aiming for. Any feedback would be great.



 7:50 pm on Mar 3, 2009 (gmt 0)

Look into GeoIP services; IP addresses are not assigned by state, or even by country. It takes a huge and frequently-maintained database to even track to the country level -- something a single Webmaster simply cannot keep up with.



 7:56 pm on Mar 3, 2009 (gmt 0)

Thanks Jim. I've actually been looking into geoip. It seems pretty strait forward to use.


 10:08 pm on Mar 3, 2009 (gmt 0)

What is the security issue you are trying to address? I would be very careful with blocking entire regions based on IP. You never know what search bots, proxies or other items may reside in that area.


 10:40 pm on Mar 3, 2009 (gmt 0)

Its not a security issue. Its more an agreement with a partner that I will try and eliminate a particular geographical area. Any suggestions?

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved