CS-Cartshopping cartsoftware · Ecommerce solution
Go Back   CS-Cart Community Forums > Version 2.x > Security
Reply
 
Thread Tools Display Modes
Old 02-01-2010, 02:31 PM   #1
vidan
Member
CS Member
 
Join Date: Jan 2010
Posts: 72
Default block country

Hello, i believe anybody here have a htaccess code for block all country except US,
i always see a website that said, if you're not in US then you are blocked.
I have geoip installed in my host, using cpanel
but i just see people posting block ip range, i want to block whole world except the one coming from US
vidan is offline   Reply With Quote
Old 02-01-2010, 03:02 PM   #2
Spiral
Senior Member
 
Join Date: Aug 2009
Posts: 133
Lightbulb

Vidan:

I quite literally posted that here in these forums last night!

To avoid being redundant, just check my last couple of posts since yesterday ....

You can use the exact same code to do a whitelist, just simply reverse
the default "Allow,Deny" and change the "DenyCountry" and "DenyContinent"
to "AllowCountry" and "AllowContinent" .... IE: flip flop the same code.
Spiral is offline   Reply With Quote
Old 02-01-2010, 04:39 PM   #3
vidan
Member
CS Member
 
Join Date: Jan 2010
Posts: 72
Default

ok close this topic.
vidan is offline   Reply With Quote
Old 02-01-2010, 06:30 PM   #4
jobosales
Senior Member
CS Guru
 
Join Date: Nov 2006
Location: Arizona
Posts: 3,114
Default

To make it easier to find in the future, this is the post referenced by Spiral:
http://forum.cs-cart.com/showpost.ph...7&postcount=27

Bob
__________________
CS-Cart 2.0.14 (testing)
jobosales is offline   Reply With Quote
Old 02-08-2010, 03:52 AM   #5
tigerbabba
Member
CS Member
 
Join Date: Apr 2008
Posts: 59
Default

GEOIP is good but there is one problem one time my customer called located in US and wanted to access my web site I have that same GEOIP enable but they were getting a block message because they were trying to access my web site from their cell phone
__________________
CS Cart 2.1.0
Love CS-Cart But X-Cart 4.1 is also very nice but I will stick with CS-Cart
tigerbabba is offline   Reply With Quote
Old 02-08-2010, 03:24 PM   #6
Spiral
Senior Member
 
Join Date: Aug 2009
Posts: 133
Lightbulb

Quote:
Originally Posted by tigerbabba View Post
GEOIP is good but there is one problem one time my customer called located in US and wanted to access my web site I have that same GEOIP enable but they were getting a block message because they were trying to access my web site from their cell phone
GEOIP is extremely accurate (especially so in the paid version) so what you speak of
would be the exception and not the rule and only in the rarest of instances.

For those, you might whitelist the CIDR ranges of those providers as you find them or
if your server can handle the increased loads resolving names, the domain.
Spiral 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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to block ordering to a certain country Len Backus General Questions 7 01-24-2010 07:29 PM
Block Country Script tigerbabba Security 2 11-29-2009 04:36 PM
Remove all but one country Dave the Slave Configuration 7 07-16-2009 07:33 PM
Default Country Lee Li Pop v1.x Configuration 1 03-19-2009 05:39 PM
Affiliate Country - Need Help JerrysPaintball General Questions 1 11-26-2007 10:43 PM