![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
CS Member
Join Date: Jan 2010
Posts: 72
|
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 |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Aug 2009
Posts: 133
|
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. |
|
|
|
|
|
#3 |
|
Member
CS Member
Join Date: Jan 2010
Posts: 72
|
ok close this topic.
|
|
|
|
|
|
#4 |
|
Senior Member
CS Guru
Join Date: Nov 2006
Location: Arizona
Posts: 3,114
|
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) |
|
|
|
|
|
#5 |
|
Member
CS Member
Join Date: Apr 2008
Posts: 59
|
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 |
|
|
|
|
|
#6 | |
|
Senior Member
Join Date: Aug 2009
Posts: 133
|
Quote:
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. |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |