Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » simpler way of banning whole world?
Closed Thread
Old 12-18-2006, 06:05 AM   #1 (permalink)
 
Newb Techie

Join Date: Dec 2006

Posts: 3

amonra

Default simpler way of banning whole world?

simpler way of banning whole world?
ok dont laugh,but as im using a huge htaccess file to ban full countries by range i was just wondering if there's an easier way doing this then adding tons of deny from to my htaccess.
for example,what if only want visitors from the u.s on my site..?
amonra is offline  
Old 12-18-2006, 07:28 AM   #2 (permalink)
 
Newb Techie

Join Date: Dec 2006

Posts: 21

Stormdev

Default

Something such as the following should work for you.

Order Allow, Deny
Deny from all
Allow from .ca


Would allow only those from .ca

Hope this helped.
Stormdev is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On