Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Disable the web to enter from a country


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.




Link to comment
Share on other sites

I am facing same problem and used this:




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


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



Link to comment
Share on other sites


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

  • Create New...