Hi,
i need to block people form a XXX country to make an order on my sites, but i want them to see all the pages and products on the site.
I saw a similar discussion on the forum, but i hasn’t solved the problem.
I already have deleted the possibility to ship order in a XXX country. But a customer from a XXX country can still make an order and ship it to other country.
All the Block IP App i trie blocked the entire site for those people, or redirect them to a single page.
I’m looking for something that prevent people from XXX country only to place an order (maybe hiding the button on product pages?)
Hello @Lenti193 , you can try to restrict their checkout. You can update your shipping zone and people from only US can buy your products. Because they can only add a US address in this case.
I understand that you don’t want customers from certain countries to be able to buy your products. I appreciate that is important to you and your business.
@osamafarooqi71 is correct in saying that the first step is to restrict your shipping zones, and I see you mentioned that in your original post.
A block IP app may potentially work as well, but the experience you are looking for is very specific and not something easily provided. Altering the appearance of the website based on the customer location is difficult to do and would not provide a consistent experience as a customer could easily use a VPN to get around it. The only way to confirm customer location is through their provided IP address and those can be spoofed quite easily.
Apps like Fraud Filter allow you to block customers from making orders at the checkout based on billing/shipping info and other fields. You can block order completion for specific countries in both billing and shipping details.
Hi @Lenti193 If you are still looking for a solution to this, you can try using the Chekout Gurdian App, that restricts purchases based on location/pincode, order quantity and customer history.
Let me know if you find this suitable as per your requirment.
You can actually do this using Shopify’s Cart & Checkout Validation Functions by validating against the billing address country code:
This lets you block checkout for specific billing countries while still allowing customers to browse the storefront. It’s a much cleaner approach than relying on IP blocking or shipping zone restrictions.
The other option but would require some frontend code is going to /browsing_context_suggestions.json
However this approach can be easily circumvented with VPNs to move their location so billing address would prevent any CC from a particular country
If you want to use Checkout Validation Functions, I built an app called Switchboard that brings these capabilities to life. If this use case is something you’d find useful, let me know. I’d be happy to build country-based checkout validation into Switchboard.
If they can ship to another country, it sounds like the issue is that you’re trying to restrict based on the visitor’s location rather than the shipping address. Shopify’s shipping zones only control where orders can be delivered, not who can place them. You’d probably need an app that applies checkout rules based on geolocation.