Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Deny certain countries?


varnco

Recommended Posts

Hello, still starting out, and trying to take small steps.

 

One of the items I want to do is only accept orders for US orders.

 

I would like to prevent certain countries altogether from accessing my site, and have the following code, but I've forgotten where to put it. Do I add it to my current htaccess file?

 

(I'll edit the deny countries/domains once I know where to put this bit of code).

 

Thanks!

 

uthUserFile /dev/null

AuthGroupFile /dev/null

<Limit GET>

order allow,deny

allow from all

deny from .edu

deny from .sy

deny from .uk

deny from .ca

deny from .au

deny from .tr

deny from .as

deny from .th

deny from .cz

deny from .de

deny from .gr

deny from .il

deny from .ir

deny from .iq

deny from .za

deny from .br

deny from .sk

deny from .ve

deny from .kr

deny from .nl

deny from .ru

deny from .ch

deny from .af

deny from .al

deny from .be

deny from .br

deny from .eg

deny from .de

deny from .hk

deny from .is

deny from .in

deny from .id

deny from .jp

deny from .lr

deny from .ly

deny from .mx

deny from .nz

deny from .ni

deny from .pk

deny from .ro

deny from .rw

deny from .sg

deny from .za

deny from .gmx.net

deny from .il.us

deny from .il

deny from megagiga.com

deny from netzero.net

deny from spaceproxy.com

deny from anonymizer.com

deny from drikka.net

deny from netdirect.net

deny from juno.com

deny from voyager.net

deny from globali.net

deny from the-cloak.com

</Limit>

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

Archived

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

×
×
  • Create New...