IP address blocking

IP address blocking

fmgazzo
Visitor
1 0 0

Hello,

 

I am one of the admins on a Shopify website with several international markets.

Is it possible to make it so any visitors to the site from a USA IP address can only see the version of the website for the USA?

Please advise.

thanks,

 

fmg

 

Replies 2 (2)

ihsfr
Shopify Partner
14 1 1

Yes, this is possible, though would require some custom javascript to get going. 

 

You could use a service like https://ipapi.co/ to grab the user's geo-location, and if the user is from the US, you could redirect them to the USA site, or show them US content, etc.

 

If you'd like, I'd be happy to help with this 🙂

Want to improve your Facebook Pixels or TikTok Pixels performance? Give us a try: https://apps.shopify.com/partners/galacticapps

apps-developer
Shopify Partner
50 0 5

you can use shopify apps for this. there is such app called Kedra Shield: Website Security https://apps.shopify.com/kedra-shield-website-security which allows blocking IPs, users using VPN/Proxy. also blocking bots. I use it for country blocking. and it's free!