Block Redirect Users Ultimate
Redirect to Subdomains, Country/IP Blocking, Free App
App highlights
-
Seamless workflow: use directly in Shopify admin
-
Speed tested: low impact to your online store

Reviews
PicArt
i installed the app and the code but it doesent work... sorry but i cant give only 1 star if its not working.
Developer reply
Sorry for not being able to help you with your requirements.
We cannot block visitors even before visiting your website. Simply because we don't have access to handle Shopify backend or hosting.
Therefore, visitors must visit the site so that we can detect the location and the IP by our script and take necessary action based on the results. Since the initial visit is inevitable, your Google Analytics will still catch that initial visit.