A promotion page is getting visits before launch. An automated tool keeps hitting your storefront. Shoppers select a country where you aren’t ready to sell. These are three different problems, and each calls for a different storefront rule.
Store Access Control in Checkout Guardian gives Shopify merchants four ways to block access based on the storefront country, an IP address, a user agent, or a specific page. Start with the rule that matches the problem you’re trying to solve, then use visitor analytics to see how many visits were blocked.
1. Block selected storefront countries
Use a Location rule when access depends on the country selected on your storefront. You can select multiple countries in one rule.
- Phase a regional launch. If you’re expanding into several countries, restrict storefront access for markets that aren’t ready while you finish preparing local pricing, fulfillment, or support.
- Pause a market temporarily. If a regional fulfillment partner pauses operations, restrict access for the affected storefront country while you adjust your setup.
- Apply the same policy to several markets. Select all affected countries in one rule when the same restriction applies to each of them.
The rule uses the country selected on the storefront. That selection can differ from the visitor’s physical location. If your policy only concerns whether an order can ship to a particular destination, use a checkout validation rule based on delivery location.
2. Block traffic from a known IP address
Use an IP Address rule when you’ve identified a specific address associated with traffic you want to restrict.
- Respond to repeated unwanted visits from a known source. If your logs consistently associate the activity with one IP address, use that address as the basis for the rule.
- Stop an old test or monitoring setup from hitting your live store. If the requests come from a known, dedicated IP address, you can block that source while the configuration is corrected.
Check whether the address is shared. An office, VPN, or other shared network can put legitimate shoppers behind the same IP address.
3. Block a known user agent
A user agent is an identifier that a browser or automated client sends when it requests a page. Use this rule when the unwanted traffic has a recognizable identifier.
- Restrict an automated tool that identifies itself consistently. Use its known user agent if you’ve verified which identifier appears in the requests.
- Block a retired integration or test client. If it still visits your storefront and sends a distinct user agent, target that identifier.
Use a specific match where possible. Broad matches can affect ordinary browsers, and automated clients can change the identifier they send.
4. Restrict access to a specific page
Use a Specific Page rule when the restriction applies to one page and shoppers should still be able to browse the rest of your storefront.
- Hold back a campaign landing page until launch. Block access if its link has already been shared and the campaign isn’t ready.
- Close an expired promotion page. Restrict an old destination that shoppers can still reach from an email or social post.
- Pause a page while you update it. Block the affected page while you correct an offer, update the copy, or replace outdated information.
If shoppers should still be able to view the offer and only the promo code needs to be rejected, use Checkout Guardian’s Discount Code Controls.
Set up your first blocking rule
- Open Checkout Guardian → Store Access Control.
- If the dashboard shows that Store Guard app embed is inactive, click Activate app embed, turn on Store Guard in your theme’s App embeds, and save the theme.
- Choose Location, IP Address, User Agent, or Specific Page based on what you want to restrict.
- Give the rule a clear title, configure its conditions, then set it to Active and save it.
- Test a visit that should be blocked and one that should still go through. For a Location rule, change the country selected on the storefront when testing.
See what your rules are blocking
The Visitor analytics dashboard shows total visits, unique browsers, and blocked visits for the selected period. After enabling a rule, use the blocked visits count alongside your own test to see whether the restriction is taking effect as expected.
Start with one specific restriction. Pick a storefront country you need to pause, a known traffic source you want to block, or a page you want to take out of circulation. Open Store Access Control in Checkout Guardian to set up and test your first rule.