Quote:
Originally Posted by 081806
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
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.