Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Restrict Access from certain countries


Recommended Posts

Hi everyone hope you can help me. I would like to be able to stop certain coutries from accessing my store or aat least stop them from buying

is this possible


i have recently had a very large order that was shipped have the credit card amount charged back to the card holder with him saying he never ordered the items

now we are out of pocket and our payment provider is saying that there is nothing they can do about it

they told my partner that it is a chance you as the merchant take when you accept online payments


thanks for any help or advice you can give me about this matter

regards simon

Link to comment
Share on other sites

this is what i do:


in the root .htaccess, add:

<Limit GET POST>
order allow,deny
allow from all
deny from ip address
deny from .cn
deny from .id
deny from .ng
deny from .ph
deny from .zw

to add new countries, just add a new "deny from ...." line


though this won't stop people that are on .net, .com, org, etc isp's.


you can also remove the countries you don't want to ship to via the admin panel. (i did mine via phpmyadmin, much quicker)


some people have stated this could cause you problems, but i haven't come across any as of yet. i deleted every country but usa, canada, european countries, new zealand, australia, croatia, etc. and since doing the deletions about a week or two ago i've processed many different orders from usa, canada, several european countries, etc. nobody has reported any problems and i test regurally.


i mean... how many times do you expect somebody from antarctica will order? :lol:


i should also note: i've encountered some sneaky indonesians selecting something like "netherlands" as their country and doing the postal code and everything for indonesia... thinking it wouldn't be caught.


your best fool-proof method is to realize a pattern between addresses in a certain country and spot any oddities and thoroughly investigate them before you ship the goods. some postal clerks aren't educated enough to catch that, so don't expect anyone but yourself to be looking out for you.

Link to comment
Share on other sites

Also you need to look at your orders before you fulfill them, even though there is a risk taking cc's online you can minimize them. Ask yourself some questions about the order and if anything at all looks wrong contact the buyer before you ship not after. I have saved myself money a few times just by making a phone call because something about an order struck me as a little off.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

Becareful when blocking entire countries from accessing your store. There could be other marketing trends you've deployed, for instance a link exchange program or some affiliates advertising scheme. Now there are many tools available on web-sites on other countries that one of your partners may check to verify a reciprocal or a banner for instance. Seeing a forbidden message could well force him to drop your link or banner.


Also some major search engines operate on a country basis and so they will not excluded from this filtering approach. Instead you could filter countries out of the sql list and tune the scripts or add a contribution to accept orders only from operational countries/zones.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...