Block by product, page, user agent, ISP or referrer
These five criteria handle cases that IP and country rules can't. Each one opens from its tile in Block & Re-director, and works in Block, Redirect and Whitelist mode.
Products
Hide a product or collection from visitors in certain countries, for example a product you aren't allowed to sell there.
- Click Products.
- Choose Specific Products and use Select product, or choose Specific Collection and use Select collection.
- Under From, choose the country. Optionally add states or provinces.
- Click Save.
Visitors from that location see the blocking page when they open the product. They can still browse the rest of your store.
Specific Page
Block a store page or any URL on your store.
- Click Specific Page.
- Choose Specific Pages and select pages, or choose Custom URL and enter the full address, such as
https://yourstore.com/pages/landing-page. - Under From, choose the country.
- Click Save.
The first time you use this criterion, Blockly asks for permission to read your store content. Click Grant permission and approve it in Shopify.
User Agent
Every browser sends a "user agent" text that describes the browser, device and OS. Bots and scrapers often have tell-tale user agents.
- Click User Agent.
- In Select country, choose where the rule applies (required). To cover everyone, use Add all countries.
- Under Type, choose:
- Browser: pick browsers in Select browsers, and optionally a device and OS.
- Substring (marker 1): enter a piece of text to look for in the user agent, such as
HeadlessChromeorpython-requests.
- Click Save.

Don't block Googlebot, bingbot or facebookexternalhit unless you mean to. Doing so removes your store from search results or breaks link previews on Facebook. Trusted bots are listed under Settings → Mitigator → Allowed bot list.
ISP
Block traffic from an internet provider. This works well against hosting and data-center networks, which real shoppers rarely use.
- Click ISP.
- Under Select country, pick the country, then pick the provider in Select ISP.
- Click Save.
To find which provider a bad visitor used, open the visitor in Analytics → Visitors. You can also click Block Internet provider right on that page.
Referrer URL
Block visitors who arrive from a particular website, such as a spam referrer or a deal site you don't want traffic from.
- Click Referrer URL.
- In Select country, choose where the rule applies (required).
- Under Referrer URL Matching, choose:
- Exact URL: blocks traffic coming from this exact URL only.
- URL Contains: blocks traffic if the referrer contains your keyword, for example
spam-site.
- Optional: add a Ref URL name (optional).
- Click Save.