Skip to content

Prevent bot purchases, fraudulent orders & unauthorized checkout (Checkout Lock)

Block suspicious or unauthorized checkouts using rules at the checkout level (not just at the catalog level).

Checkout for a guest blocked by a checkout lock: Sorry your order has been blocked, You need to log in before proceeding with checkout

What your customers see on the storefront.

Goal
Block suspicious or unauthorized checkouts using rules at the checkout level (not just at the catalog level).

When to use this recipe

  • You get many fake or risky orders.
  • You want only approved customers to complete checkout.
  • You need extra safeguards for certain products or customers.

  • Make sure Checkout locks is visible in the BSS B2B Lock app navigation (left sidebar). On the Pricing page, Checkout locks is listed for every plan, including Free.

  1. In the app, click Checkout locks in the left sidebar. The Checkout lock list opens. Use the search box to find a rule by name, sort by Name or Created, and check the Showing x of y rules counter.
  2. Click Add checkout rule. In Select rule type, choose Checkout lock (“Validate checkout with custom conditions.”) and click Continue.
    • The rule types are listed in a single column: Checkout lock, Hide Payment & Express Checkout Options and Hide shipping methods.
    • If your trial has ended and you have no paid plan, the button reads Subscribe to continue and takes you to the pricing page.
  3. In Rule name, name the rule:
    Block unauthorized checkouts or Stop bot/fraud orders.
  4. Keep On/Off switched on.

You’re now configuring checkout-level conditions, not just storefront visibility.


Step 2 – Define conditions for blocking checkout

Section titled “Step 2 – Define conditions for blocking checkout”

Under Conditions to lock (“Define the conditions that must be met to lock checkout.”), click + Add condition and pick a condition in Choose condition (tabs Popular, Customer, Cart, Product and More views):

  • Always: “Always block checkout”
  • Customer: Customer logged in, Customer phone, Customer email, Customer tag
  • Cart: Subtotal amount, Cart line item count, Cart total
  • Product: Product tag, Specific product, Product quantity, Product vendor
  • Address: Shipping province

Product vendor and Shipping province are live. Enter the vendor name (for example Winery A) or the shipping province/region code (for example MI). Shipping province reads the province from the shipping address the customer enters at checkout, not from their IP address, so it is only known after the customer has entered an address.

Conditions marked Coming Soon can’t be used yet: Customer order count, Shipping country, Market, Date range, Time range and Discount code.

When a rule has more than one condition, choose Match conditions: All (“All specified conditions must be met”) or Any (“Any of the specified conditions must be met”).

Examples of useful patterns:

A. Only tagged customers can checkout

  • Condition: Customer tag → Operator Does Not Contain → Value wholesale (or approved).
  • Result: Checkout is blocked for customers without the tag, so only approved customers can complete orders.

B. Block specific products from checkout

  • Conditions: Specific product (“Check if specific products are in cart”) AND Customer tag → Does Not Contain your approval tag, with Match conditions set to All.
  • Useful for restricted products or controlled items.

C. Vendor-specific or province-specific block

  • Conditions: Product vendor → value Winery A AND Shipping province → value MI, with Match conditions set to All.
  • Result: Checkout is blocked when the cart has a product from that vendor and the shipping address is in that province. Products from other vendors can still be bought there.
  • Use the 2-letter code Shopify shows at checkout for that address, not the full name. Place a test order to confirm the exact code before you rely on it.

D. IP / country protection

  • Checkout locks have no IP condition, and Shipping country and Market are marked Coming Soon.
  • To restrict by IP address or country today, use a storefront lock instead: Locks → Step 2 → More → Location (e.g. IP address – Only for specific IP addresses or Location – Only for selected countries).

For each rule, define:

  • Which conditions to check.
  • How they combine (Match conditions: All or Any) to mean “block this order”.

Step 3 – Customize the blocked checkout message

Section titled “Step 3 – Customize the blocked checkout message”

When a checkout is blocked, the customer should see a clear explanation.

Under Error message:

  • Pick the language with the language button above the message (it shows Default or a language name). Your store’s current default language is selected for you, and it is listed separately from the Default entry so you can tell them apart. Edit the main message (default: “Sorry your order has been blocked”), e.g.:
    • “We can’t complete this order”
  • Below it, each condition type has its own message: e.g. Customer tag: “Your account has a tag that prevents checkout.”: which you can edit, e.g.:
    • “This checkout is only available for approved wholesale customers. Please log in with your wholesale account or contact us.”
  • The Preview card on the right shows how the messages appear at checkout.

Include:

  • A link to contact support or request approval.
  • Any necessary compliance text (if blocking for legal reasons).

Click Save in the Unsaved changes bar at the top of the page.


  1. Attempt a checkout as a customer who should be blocked:
    • Use a test customer or a normal retail profile.
    • Confirm the checkout displays your error message and does not proceed.
  2. Attempt a checkout as an approved customer:
    • Confirm the order flows normally.

Checkout Lock works best when combined with:

  • Catalog-level locks (hide products/collections from the wrong users).
  • Price/visibility rules (hide prices from guests or unapproved users).
  • Tag-based approval flows from your B2B apps.

Together, they give you a full stack of protection:
From who can see what → to who can actually place an order.


If you have questions or need assistance configuring BSS B2B Lock, our dedicated support team is here to help.

  • In-App Assistance: Click Need help? or use the in-app chat button within BSS B2B Lock.
  • Email Support: Contact us at [email protected] with your store URL and specific rule details.