Script To Block Traffic From Outside Country

PPUSA
Excursionist
36 0 11

Hi all,

 

Does anyone know of a Script To Block Traffic From Outside Country e.g. anything outside USA.

 

Thanks!

Reply 1 (1)

WhiteWater_Web
Shopify Expert
457 17 42

There are several apps that can be used to do this, including Cozy Country Redirect, Traffic Police, GeoIP, etc.

 

With some coding leveraging this service, https://ipstack.com/, a custom solution could be created too.

 

Cheers.

 

WhiteWater Web

A certified Shopify Partner and Expert, WhiteWater Web (WWW) is a premium digital solutions company specializing in advanced Shopify Dev, Usability/Design, and Online Strategy. WWW has been working with the Shopify platform since 2006.
info@whitewatersolutions.com