Browse apps

Guides

Block Customer Emails & Disposable Domains at Shopify Checkout

TL;DR

To block specific customer emails or disposable email domains before payment capture on Shopify, use a server-side Cart and Checkout Validation Function. In LabX Fraud Filter, you can create Email rules using Exact match for repeat chargeback buyers or Contains for domain blacklists (such as @mailinator.com and @tempmail.com) and + alias prefixes, with custom inline or top-of-checkout error messages.

Every Shopify merchant eventually builds a list of email addresses and domains that should never be allowed to place another order. Sometimes it is a specific buyer who filed an illegitimate chargeback, claimed multiple consecutive parcels never arrived, or abused a first-time discount code. Other times it is an entire category of throwaway inbox providers—such as @mailinator.com, @tempmail.com, or @yopmail.com—used to submit fake Cash-on-Delivery (COD) orders or test stolen payment cards.

However, Shopify does not include a native “block this email at checkout” button in the default admin. If you simply delete or tag a customer record, or wait to cancel their order after it arrives, the buyer can still submit checkout, reserve inventory, and trigger non-refundable payment processing fees.

In this guide, we cover how to block customer email or domain on Shopify before payment is captured using server-side Cart and Checkout Validation Functions, how to configure exact, domain, and alias-prefix matching in LabX Fraud Filter, and how to combine email rules with phone, postal code, and customer tag checks. For a broader look at store security, see our Shopify fraud prevention guide.

Why do Shopify merchants need to block specific emails and domains at checkout?

Filtering checkouts by email address solves two distinct operational headaches: stopping known repeat offenders and filtering out anonymous, disposable inboxes.

  1. Repeat chargeback and refund abusers: When a customer files an illegitimate dispute or repeatedly claims false item-not-received refunds, keeping a spreadsheet of their details does not stop their next order. You need to block repeat chargeback customer email addresses automatically the moment they try to check out again.
  2. Disposable and burner email domains: Throwaway inbox services generate temporary addresses that expire in minutes and require no identity verification. Real buyers rarely want their order confirmations and tracking updates sent to a public self-destructing inbox. Disposable domains at checkout are heavily tied to promo abuse, fake COD orders, and card testing attacks.
  3. Unauthorized resellers and B2B policy violators: Brands enforcing purchase limits or territory agreements often need to stop specific corporate domains or known reseller accounts from placing bulk orders through a retail storefront.
  4. Preventing non-refundable gateway fees: If you wait for Shopify Fraud Analysis or a post-order workflow to cancel an order after automatic payment capture, your payment processor keeps its transaction fee. As shown in our Shopify Fraud Filter alternative comparison, rejecting the buyer during checkout costs zero processing fees because payment authorization never runs.

Why can’t storefront JavaScript or post-order workflows stop blocked emails properly?

When merchants try to block an email address or domain on Shopify, they usually encounter three technical approaches. Understanding where each one runs explains why server-side checkout validation is required:

Filtering MethodWhere It RunsStops Order Before Payment Capture?Can a Buyer Bypass It?Primary Purpose
Storefront App Embed (Fraud Guard)In the visitor’s browser on storefront pagesNo—storefront scripts do not run inside Shopify CheckoutYes, by disabling JavaScript or calling Cart/Checkout APIs directlyStorefront traffic and bot blocking by IP, CIDR, country, ISP/ASN, Tor, or datacenter
Post-Order Cancellation (Flow / Manual Cancel)Server-side after the order is createdNo—payment is already authorized or capturedN/A (order is already placed)Flagging orders for review when manual payment capture is enabled
Checkout Protection (Cart & Checkout Validation Function)Server-side on Shopify’s checkout infrastructureYes—blocks checkout progression before payment submissionNo—enforced by Shopify on every cart and checkout submissionBlocking specific customer emails, disposable domains, phones, names, ZIP codes, countries, and customer tags

Storefront blocking rules are essential for keeping bots, scrapers, and unwanted regions out of your catalog, but because Shopify serves storefront pages from its CDN, storefront scripts run in the browser and can be bypassed if a visitor disables JavaScript. More importantly, storefront scripts do not execute on Shopify’s checkout pages at all.

To stop an email address at checkout so that it cannot be bypassed, the rule must execute as a Shopify Checkout Validation Function on Shopify’s own servers.

How do Exact match and Contains work for email and domain blocking?

In LabX Fraud Filter, Checkout Protection evaluates the buyer’s email (cart.buyerIdentity.email) on Shopify’s backend using two match modes: Exact match and Contains. You do not need complex regular expressions to set up wildcard email blocking on Shopify—combining Exact match and Contains covers individual addresses, full domains, and sub-address aliases cleanly.

Match TypeValue EnteredWhat It Matches at CheckoutPrimary Use Case
Exact match (exact)[email protected]Only [email protected] (case-insensitive, trimmed)Blocking a specific repeat chargeback customer email without affecting other users on @gmail.com or @outlook.com
Contains (contains) — Domain@mailinator.comAny email containing @mailinator.com (e.g., [email protected])Blacklisting an entire disposable email domain or unauthorized corporate domain
Contains (contains) — Subdomain / Brand.mailinator.com or @tempmail.Any address containing that substring (e.g., [email protected] or @tempmail.org)Catching disposable providers that rotate across subdomains or top-level domains
Contains (contains) — Plus Alias Prefixrepeatabuser+[email protected], [email protected]Stopping a known abuser from bypassing an exact-match block using + sub-addressing

How case folding and deduplication prevent simple evasions

Buyers attempting to slip past a blocklist often change letter casing—typing [email protected] instead of [email protected]—or add accidental spaces when pasting an address on mobile.

When you save an email rule in LabX Fraud Filter, the app trims leading and trailing whitespace, converts every rule value to lowercase, and deduplicates entries that normalize to the same string (so entering [email protected] and [email protected] stores one clean value). At checkout, the compiled Rust validation function folds the buyer’s typed email to lowercase before comparing. If the shopper has not filled in their email address yet, the function waits rather than showing a premature error.

Which disposable email domains should you blacklist at checkout?

To blacklist disposable email domains on Shopify without blocking real customers on Gmail, iCloud, Outlook, Yahoo, or Proton Mail, start with well-known public throwaway inbox providers.

Inside the Checkout Protection rule builder, selecting Email displays quick-add chips (Quick add untrusted email domains) so you can add common disposable domains with a single click:

  • + @mailinator.com
  • + @tempmail.com
  • + @guerrillamail.com
  • + @10minutemail.com
  • + @dispostable.com
  • + @yopmail.com
  • + @trashmail.com
  • + @getairmail.com

Based on your store’s order or abandoned-checkout logs, you can also paste additional throwaway domains into the Values box (one per line or comma-separated, up to 100 values per rule), such as:

  • @temp-mail.org, @tempmailo.com, @10minutemail.net, @20minutemail.com
  • @guerrillamail.net, @guerrillamail.org, @sharklasers.com, @grr.la
  • @yopmail.fr, @yopmail.net, @maildrop.cc, @mailnesia.com
  • @getnada.com, @nada.email, @inboxkitten.com, @trashmail.net
  • @burnermail.io, @discard.email, @emailondeck.com, @mohmal.com

Operational tip: Always include the leading @ symbol when blocking a domain with Contains (such as @mailinator.com rather than mail). Entering a short substring like mail in Contains mode would block every customer whose username or provider includes mail (including @gmail.com and @hotmail.com).

How do you set up email, domain, and customer tag blocking step by step?

You can put your email and domain blocklist live in under five minutes:

Step 1: Create an Exact match rule for specific repeat-abuse emails

  1. Open LabX Fraud Filter in Shopify Admin, go to Checkout Protection, and click Add rule.
  2. Confirm Rule status at the top is set to Enable.
  3. In Step 1 (If), set Condition to Email and Match type to Exact match.
  4. In Values, paste the exact email addresses from your chargeback or abuse records (one per line or comma-separated, up to 100 values per rule). They appear as removable value chips below the input.
  5. In Step 2 (Then), enter a custom Error message (up to 255 characters) or click a recommended email preset:
    • “This email address is not eligible to complete this order.”
    • “We could not verify this email address. Please contact support.”
  6. Choose the Position for the error:
    • Next to the field that triggered the rule (inline, attaching the error to $.cart.buyerIdentity.email directly below the email input).
    • Top of checkout ($.cart, showing a banner at the top of the checkout form).
  7. Review the live Preview on the right and click Save.

Step 2: Create a Contains rule for disposable email domains

  1. Click Add rule in Checkout Protection to create a second rule for domains.
  2. In If, choose Condition = Email and Match type = Contains.
  3. Click the Quick add untrusted email domains chips (+ @mailinator.com, + @tempmail.com, + @guerrillamail.com, + @10minutemail.com, + @dispostable.com, + @yopmail.com, + @trashmail.com, + @getairmail.com) and paste any additional @domain entries.
  4. In Then, enter a helpful message asking legitimate shoppers to use a permanent inbox—for example: “Please enter a permanent email address rather than a disposable inbox so we can send your order confirmation and tracking updates.”
  5. Select Next to the field that triggered the rule and click Save.

How do you stop repeat offenders who simply create a new email address?

A determined problem buyer who sees an email error at checkout may open a fresh free inbox and try again. Close that loophole by pairing your Email rules with the other server-side conditions in Checkout Protection:

  • Customer tag rules (Customer tag): When you tag customer accounts in Shopify Admin (e.g., chargeback or return-abuse), add a rule with Condition set to Customer tag and Match type set to Buyer has any of these tags. You can also select Buyer has none of these tags on B2B stores to restrict checkout to tagged vip or wholesale accounts (which also blocks untagged guests). The app only requests the optional read_customers permission when you save a customer tag rule, and tag errors always appear at the Top of checkout.
  • Phone number rules (Phone): Repeat COD abusers often reuse the same mobile number. Phone rules strip all non-digit characters (+, -, spaces, parentheses) before comparing, so blocking 15550109999 in Exact match mode—or an area prefix in Contains mode—catches +1 (555) 010-9999 and 555-010-9999 alike.
  • Name, Zip, and Country rules (Name, Zip, Country): Match on First Name, Last Name, or Full Name (Exact match or Contains), block problem postal codes with Zip (Exact match or Contains), or restrict unsupported shipping destinations with Country.
  • Storefront network rules (Blocking Rules & Mitigator): To stop automated scripts before they browse your store, block abusive IP or CIDR ranges in storefront Blocking Rules and toggle on Block Tor traffic and Block datacenter traffic in Settings > Mitigator.

Because LabX Fraud Filter is built to fail open—registering the Checkout Validation Function with non-blocking failure behavior and verifying that your compiled ruleset stays within Shopify’s 64,000-byte metafield limit (up to 100 checkout rules per store)—your email and domain rules stop unwanted orders server-side without risking a checkout lockout for real shoppers.

Frequently asked questions

Can I block an entire email domain like @mailinator.com at Shopify checkout?

Yes. In LabX Fraud Filter, create a Checkout Protection rule with Condition set to Email and Match type set to Contains, then enter the domain starting with the @ symbol (for example, @mailinator.com or @tempmail.com). Every checkout attempt whose email contains that domain substring is rejected server-side before payment.

Does email blocking at checkout care about uppercase or lowercase letters?

No. Both Exact match and Contains email rules are normalized to lowercase and trimmed of leading or trailing whitespace before comparison. If you block [email protected], a buyer typing [email protected] or [email protected] is still blocked.

How do I stop a blocked buyer who uses Gmail + aliases like [email protected]?

Create an Email checkout rule with the Contains match type and add the local-part prefix including the plus sign (for example, john.smith+) alongside their exact base email address. Pair email rules with Phone, Name, Zip, or Customer tag rules so changing email addresses alone does not bypass your checkout controls.

Why should I block problem emails at checkout instead of auto-cancelling the order afterward?

When you cancel an order after checkout completes and payment is captured, payment processors keep their non-refundable transaction fees. Blocking the email during checkout via a Shopify Cart and Checkout Validation Function stops the transaction before payment authorization or capture occurs.

Sources

  1. Shopify Dev Docs — About Cart and Checkout Validation Functions
  2. Shopify Help Center — Fraud Analysis
  3. Shopify Help Center — Managing Customer Tags

Part of our guide: Shopify fraud prevention →

Put your first blocking rule live in minutes

Install LabX Fraud Filter free on Shopify, turn on the Fraud Guard embed and add your rules.

Install free on Shopify

Free plan available