How Block & Re-director rules work
Block & Re-director is where you decide who can visit your store. Each rule matches visitors by one criterion and then blocks them, redirects them, or lets them through.

The three modes
Choose the mode with the tabs at the top of the page (marker 1):
| Mode | What happens to a matching visitor |
|---|---|
| Block | Sees your blocking page instead of the store |
| Redirect | Is sent to another URL or Shopify market. See Redirect visitors |
| Whitelist | Is always allowed in, even if a Block rule would match. See Whitelist and unblock |
The seven criteria
Under the tabs, pick what the rule should match (marker 2). Once you have rules of a type, its tile shows how many.
| Tile | Matches visitors by | Guide |
|---|---|---|
| IP Address | Single IP, IP prefix or IP range, typed in or uploaded as CSV | Block IP addresses |
| Location | Country, province/state or city | Block countries |
| Products | Viewing a product or collection, from a country you choose | More criteria |
| User Agent | Browser, device, OS or a text in the user-agent | More criteria |
| Specific Page | Opening a store page or a custom URL | More criteria |
| ISP | Internet provider, such as a hosting company | More criteria |
| Referrer URL | The site the visitor came from | More criteria |
Create a rule
- Open Block & Re-director.
- Choose Block, Redirect or Whitelist.
- Click a criteria tile. The rule editor opens.
- Under Select condition, choose how to match, then fill in the values. Fields marked as required, such as the country on User Agent rules, must be filled in.
- Block rules only: add a Note so your team knows why the rule exists. Customers never see it.
- Check the Rule summary on the right, then click Save in the Shopify save bar at the top of the page.
The Rule status card shows whether the rule is on. Use its button to switch the rule on or off without deleting it.
When you enter several values at once, such as a list of IPs or countries, each value is saved as its own rule. On the Free plan of older installs, only 4 rules can be active, whitelist rules included. Any rule over the limit is saved turned off, and the app doesn't warn you. See Plans and features.
Manage your rules
The table under the tiles lists your rules in three tabs: Blacklist, Redirect and Whitelist.
- Search. Click the search icon, then type an IP, country, state or internet provider.
- Check if a rule is working. Each row shows a 30-day count, such as "Blocked: 318 in 30 days" or "No matches in 30 days".
- Switch a rule on or off. Use the switch in the Action column.
- Edit or delete. Use the pencil and trash icons in the Action column. You can't undo a delete.
- Bulk actions. Tick rows, then choose Turn on, Turn off or Delete.
A rule that shows "No matches in 30 days" for months is probably safe to turn off. Rules you don't need make your setup harder to reason about.
Which rule wins?
Blockly checks a visitor in this order:
- The Admin's access URL from Settings → General settings always gets through.
- Tor blocker, blocked bots and the Spy extensions blocker come next. These block a visitor even if they are whitelisted.
- Whitelist rules beat Block and Redirect rules for the same visitor.
- The Proxy and VPN blocker still blocks a whitelisted visitor on a VPN, unless that whitelist rule has Whitelist if these accesses use VPN. ticked.
- Block and Redirect rules apply to everyone else.