Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Disable the web to enter from a country


Antonin

Recommended Posts

Good day,

 

I don´t want that people from a certain country (China) see my web. I have a reason why to do it.

Is there a way how to "block" or disable to enter my web for visitors from countries which I choose? To know how to do that would help me at the moment.

 

Thanks

Antonin

Link to comment
Share on other sites

I am facing same problem and used this:

 

http://www.wizcrafts.net/chinese-blocklist.html

 

But I like the link DunWeb suggested. That was my next step is to create something more automatic to update the IP list.

 

Please also note that if your main code is under <domain>/catalog/..., you will need to modify .htaccess file inside the /catalog directory.

 

And add:

<Files .htaccess>

deny from all

</Files>

in your .htaccess. This will prevent anyone from seeing what is inside your .htaccess file

 

Rudolf

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...