Articles on: Blockify - Checkout Rules

Validate shipping address if it is a PO box

How to Block PO Box Addresses at Checkout in Blockify Checkout

Overview

Many shipping carriers — especially FedEx, UPS Ground, and freight services — don't deliver to PO boxes. When a customer accidentally enters a PO box at checkout, the order ends up failing or requiring a follow-up to fix. The PO Box Address validation rule in Blockify Checkout automatically blocks checkout when a PO box keyword is detected in the shipping address, so you avoid failed deliveries, re-shipping costs, and customer follow-ups.

This article walks you through what the rule does, when to use it, and how to set it up.

Benefits

  • Avoid shipping issues. Ensure that orders are sent to physical addresses, preventing delays or failed deliveries caused by PO box entries.
  • Save time and costs. Eliminate the need to follow up with customers and request a valid address after an order is placed.
  • Enhance customer experience. Blocking PO box addresses upfront helps customers avoid frustrations with shipping issues down the line.
  • Improve order accuracy. Maintain higher accuracy in your shipping process and reduce the risk of lost packages caused by incorrect addresses.

When to Use This Rule

Turn this rule on when:

  • You ship through carriers that don't deliver to PO boxes (e.g., FedEx Ground, UPS Ground, most freight carriers).
  • Your products require signature on delivery.
  • You sell oversized or fragile items that can't physically fit in a PO box.

If you only want to block specific street addresses or neighborhoods, use the Specific Address rule instead.

Step-by-Step Guide

Step 1: Open the Blockify Checkout app in your Shopify admin. Scroll to the Delivery & Location section and click Create on the PO box address card.

Alt text: Blockify Checkout dashboard showing the Delivery & Location section with three rule cards — Shipping address, PO box address (highlighted with a red border), and ZIP code. The PO box address card displays a Shipping Address preview with "PO Box 4827" and the error message "We're unable to deliver to this address", along with a Create button.*


Step 2: Set the Rule status, give the rule a name for internal reference, then configure the Condition:

  • Rule status — choose Active to apply immediately, Draft to save without enabling, or Test Mode to test the rule without affecting real customers.
  • Condition — leave the condition set to PO Box address (already selected by default). Set the Trigger to Contains, then in the Value field, type each keyword you want to block (for example: PO, P.O, PO Box, Post Office Box) and click Add after each one. The rule will block checkout if the customer's shipping address contains any of the keywords listed.

Alt text: Checkout validation rule editor with Rule status options (Active, Draft, Test Mode), a Rule name field, and a highlighted Condition section. The Condition shows "PO Box address — Validate if address is PO box", with Trigger set to "Contains" and the Value field containing two added keyword tags: "PO" and "P.O". On the right, a summary panel shows the rule logic IF/THEN and a checkout Preview with an error message: "PO Box addresses are not allowed. Please provide a valid specific address."*


Step 3: Scroll down to set up the Error Message customers see when their address is blocked, and choose its Message Position on the checkout page. Make the message specific so customers know what to fix — for example, "We're unable to ship to PO boxes. Please enter a physical address."

Alt text: Error Message text field filled with a sample message about PO boxes not being accepted, alongside the Message Position selector showing options for where the error appears on the checkout page.*


Step 4: Click Save to publish the rule. If you set the status to Active, the validation takes effect on your live checkout immediately. If you chose Test Mode, the rule will only trigger for test orders.

Alt text: Save button at the bottom of the rule configuration screen, ready to activate the PO Box validation rule.*

FAQ

Q: What keywords should I add to catch all PO box variations? A: We recommend at least these four: PO, P.O, PO Box, Post Office Box. The match is case-insensitive, so po box, Po Box, and PO BOX will all be caught by PO Box. You can add more variations any time.

Q: Could this rule accidentally block valid addresses that contain "PO"? A: It's possible if a street name happens to contain those letters (e.g., "Poplar Street" if you only added PO as a keyword). To reduce false positives, prefer more specific keywords like PO Box, P.O. Box, or Post Office Box rather than just PO.

Q: What does Test Mode do? A: Test Mode lets you validate that the rule works correctly without affecting real customers. The rule will only trigger for orders placed in test mode, so you can confirm the keywords and error message behave as expected before going live.

Q: Can I run this rule alongside other Checkout Validation rules? A: Yes. Each Checkout Validation Rule is evaluated independently, so you can stack the PO Box rule together with rules for Shipping address, ZIP code, Country, etc.

Q: Where do customers see the error message? A: At the position you selected in Step 3, directly on the Shopify checkout page, before the customer can complete their order.

Note: Before enabling this rule on a busy store, we recommend running it in Test Mode first and confirming the keywords don't accidentally block valid street addresses (e.g., "Poplar", "Pope", "Polo"). Place a test order with a real PO box and a real street address to verify the rule behaves as expected.

Updated on: 05/05/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!