Made by a Shopify PartnerSubmitted to the Shopify App Store, review in progressSee how setup works
Shopify Partner · App Store review in progress

How do I block an IP address on Shopify?

Short answer

Shopify’s admin has no option to block an IP address from visiting your store. You need an app that checks each visitor’s address on the storefront. Find the address on the order or in a visitor log, add it as a block rule, either one address or a whole range, and keep an allow entry for your own office so you cannot lock yourself out.

Where to find the IP address

Shopify shows the IP address an order was placed from in the order’s fraud analysis. For visitors who never order, you need a visitor log: Brickmoat records each storefront decision with the address, country and network for visitors that a rule stopped.

One address, or a range

Blocking a single address works against one person on a fixed connection. Bots and determined visitors change address, usually within the same network, so a range is often what you need.

  • A single address, IPv4 or IPv6
  • A CIDR block such as 203.0.113.0/24
  • A start and end address, such as 203.0.113.5 to 203.0.113.90
  • On the Pro plan: a whole network or internet provider, matched by name or network number

Storefront and checkout are separate

A storefront rule stops browsing. Shopify does not let any app read a buyer’s IP address inside checkout, so the checkout blocklist works on what the buyer types: email, email domain, phone and address. Use both for someone who keeps coming back.

Steps with Brickmoat

  1. 1

    Switch on the storefront embed

    From the Dashboard, open the theme editor, switch on the Brickmoat app embed and save.

  2. 2

    Add the address

    Open Rules and add the address, CIDR block or range to the blocklist. You can also import a list of addresses from a file.

  3. 3

    Add your own address to the allowlist

    Allow entries always win over blocks. Adding your office or home address means a wide range rule can never lock you out.

  4. 4

    Block them at checkout too

    On the Starter plan ($6.99 a month), switch on the checkout blocklist and add the email, phone or address they use. Shopify then refuses the checkout with a message you write.

  5. 5

    Watch the log

    The visitor log shows each blocked visit with its reason, so you can see the rule working and spot a real customer caught by mistake.

Brickmoat has a free plan, and paid plans start with a 14-day free trial. See the plans or watch the install guide.

Limits to know about

  • Someone who switches to a different network, or to a VPN, gets a new address. Blocking VPN and proxy networks is a separate switch on Starter and above.
  • Mobile and shared connections put many people behind one address. Blocking a mobile network range can block real customers.
  • If the check cannot be completed, the visitor is let in.

Related questions

Can I block an IP address without an app?

Not for visits. Shopify’s admin has no IP block for the storefront. Shopify’s own fraud tools act on orders at checkout, after the visit has happened.

What if I block my own IP address by mistake?

Add your address to the allowlist first: allow entries always win. On the Pro plan you can also set a staff bypass password that lets you through the block page.

Does Brickmoat support IPv6?

Yes. Single addresses, CIDR blocks and ranges work for both IPv4 and IPv6.

More guides

Start with a free scan of your customer list

The free plan is free for good. Brickmoat starts in watch mode: it shows what it would catch and changes nothing until you switch it on.