View Single Post
Old August 18th, 2006, 9:35 PM   #8 (permalink)
miakeru
Web Hosting Super Ninj4
Super #1
 
miakeru's Avatar
 
Joined in Sep 2003
Lives in Fullerton, CA
1,581 posts
Gave thanks: 0
Thanked 2 times
Quote:
Originally Posted by 081806 View Post
Hey thanks again.
Now if there's a simple way to kick everyone out except from US, that would be great!
You're in luck!

Code:
order allow,deny
deny from all
allow from .com
allow from .net
allow from .org
allow from .us
allow from .mil
allow from .gov
... and anything else I might've missed.

Quote:
Originally Posted by 081806 View Post
As to why I didn't think of "deny from .cn" etc. Cause I didn't think of it. But wouldn't that stop for example blahblah.cnet.com? or blah.cnn.com?
Aha! I misread what you typed.

Nope, it won't block things like CNet as their hostname must end in '.cn' and not just contain it.
miakeru is offline   Reply With Quote