21 Replies Latest reply: Jan 13, 2014 2:53 AM by madwebllc RSS

    How can I block users from a certain country to access my site on Business Catalyst?

    mario_gudelj CommunityMVP

      This can not be achieved on the server level, but the following is a JavaScript workaround.

       

      You need to utilise {module_visitorcountrycode} in this case, which will display the 2-letter country code of the current visitor. So if the visitor is from Australia, it will display 'AU', if they are from the US, it'll display 'US'. So using some basic JavaScript you can restrict anyone who is from US by redirecting to a web page where you state that this site is blocked for US visitors.