Computer ForumsComputers  

Go Back   Computer Forums > Programmers Lounge > Programming Discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 12-18-2006, 05:05 AM   #1 (permalink)
Newb Techie
 
Join Date: Dec 2006
Posts: 3
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   Reply With Quote
Old 12-18-2006, 06:28 AM   #2 (permalink)
Newb Techie
 
Join Date: Dec 2006
Posts: 21
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   Reply With Quote
Reply

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



All times are GMT -5. The time now is 10:34 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0