Zen Cart Logo
Forums / General Questions / Blocking countries with htaccess and allowing a few exceptions

Blocking countries with htaccess and allowing a few exceptions

Views: 599

Results 1 to 2 of 2
9 Jul 2012, 4:12 AM
#1
linnx avatar

linnx

Zen Follower

Join Date:
Jun 2009
Posts:
187
Plugin Contributions:
0

Blocking countries with htaccess and allowing a few exceptions

I know this isn't exactly Zen Cart related, but I have a lot of dummy accounts being created from China. Bots just making new accounts all day long.
So I have blocked all of china via the .htaccess.

Here is the problem.

There are a few IP's in China that I want to allow. I did put the allow from <allowed up>

I'm no expert at this, but the above doesn't work. It seems to ignore the allow from

Any ideas?

Thank you!

9 Jul 2012, 11:58 AM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,085
Plugin Contributions:
56

Re: Blocking countries with htaccess and allowing a few exceptions

You might try asking over on https://www.webmasterworld.com, in the Apache Web Server area. The people over there are very knowledgeable ...