How to block PO boxes, BFPO and APO/FPO addresses on Shopify
Stop shoppers checking out to PO boxes, British Forces Post Office (BFPO) or US military APO/FPO/DPO addresses with a clear checkout message - or hide courier rates while keeping postal services open. Works on every Shopify plan, Basic included, inside the Free plan's 2-rule limit.
Last updated: 3rd December 2026.
Why Shopify doesn't stop PO boxes natively
Shopify's shipping zones only check country and state or province. They never inspect the street address lines where shoppers type PO Box 42, P.O. Box 105 or BFPO 801. Unless you run a Shopify Function at checkout, orders go through and you end up emailing the customer for a street address or paying courier address-correction fees.
At a glance: PO box & address protection recipes
| Scenario | Shopify native limit | TillKit rule type | Free-plan slot |
|---|---|---|---|
| Block PO boxes, BFPO & APO/FPO military mail | Accepts any text in Address line 1 | Checkout block (PO box condition) | 1 live rule |
| Hide courier rates (FedEx/UPS/DPD) for PO boxes | Shows courier rates to PO box addresses | Delivery rule (Hide) | 1 live rule |
| Block Packstation, InPost lockers & freight forwarders | No street keyword filter | Checkout block (Address contains) | 1 live rule |
Block PO boxes in one click with ready-made templates
TillKit Checkout Rules includes two ready-made PO box templates, each using just 1 rule:
- Open
TillKit Checkout Rulesfrom Apps in your Shopify admin and openTemplatesfrom the sidebar (or clickBrowse all templates). - Choose
PO box and BFPO offfor UK, Australian, Canadian or worldwide stores - orUS PO boxes and APO/FPO/DPO offif you ship in the US and want to catch overseas military ZIP codes (090-099,340,962-966) in the same rule. - Click
Add this rule, edit the checkout message if you want and clickSave. - Try a PO box address through your private Testing link, then click
SaveinTestingmode, preview with your private Testing link, then switch Status toActive.
If you only need to keep heavy, perishable or age-restricted items out of PO boxes and parcel lockers, add a Vendor or Product tag condition alongside PO box (is a PO box) (or pick the Knives and axes or One carrier for tagged lines template) so smaller items still ship normally.
Hide FedEx, UPS or DPD for PO boxes instead of blocking checkout
If you ship via both a national postal service (USPS, Royal Mail, Canada Post or Australia Post) and private couriers (UPS, FedEx, DPD or DHL), you don't have to turn PO box orders away completely:
- Click
Create a new rule→Hide, rename or reorder shipping ratesand set Condition toPO box(is a PO box). - Under
Then, chooseHide ratesand enter the courier rate names that can't deliver to PO boxes (for exampleUPS Ground, FedEx 2DayorDPD Next Day). - Save in
Testing, check with your Testing link and switch toActive. Shoppers with a PO box only see your postal rates, while street addresses still see every courier option.
Questions
What PO box formats does TillKit detect?
It checks both shipping address lines for PO Box, P.O. Box, P O Box, Post Office Box, BFPO and international PO box terms (Postfach, Postbus, Boîte Postale, Francophone BP, Apartado Postal, Casella Postale and Caixa Postal), regardless of capitalisation or spacing. On US stores, the US template also matches overseas military ZIP codes (APO, FPO, DPO). To block parcel lockers or freight forwarders such as Packstation, ParcelShop or InPost, use the custom Address keywords condition or ready-made locker template.
Will it accidentally block private mailboxes like The UPS Store or street addresses?
No. It deliberately leaves Box 12, PMB 123, USPS PO Box Street Addressing and normal flat or unit numbers open so genuine street deliveries go through.
Can I hide UPS or FedEx for PO boxes instead of blocking the whole order?
Yes. Use a delivery rule with PO box (is a PO box) and choose Hide rates so courier options disappear while postal rates stay selectable.
Try it on your store
Install the app, add the PO box template in Testing and try entering PO Box 42 on your own checkout before turning it live.
Free plan
Free forever
Run 2 complete rules live across checkout, delivery or payments. Each rule covers unlimited postcodes, packs, products and conditions - with unlimited orders. Rules in Testing or Off don't count.
Unlimited plan
$5.99 / month
Every active rule runs, with a 7-day free trial and free use on development stores. If you switch back to Free, your earliest 2 live rules keep running and the rest stay saved.
Works on every Shopify plan, Basic included.
More how-to guides
- Block Alaska, Hawaii, PO boxes and APO/FPO addresses
- Stop FedEx and UPS remote-area surcharges on Shopify
- Canada remote postal codes and PO boxes
- Remote Australian postcodes on Shopify
- Free FedEx, UPS Remote ZIP and UK Postcode Checker
- Hide next-day delivery after a cut-off time and schedule holiday rules
- Hide Cash on Delivery (COD) by order total or postcode
- All of Checkout Rules
- Require a house or building number at checkout
- Limit checkout street address length to 35 characters
- Block Packstation, InPost parcel lockers and freight forwarders
- Block non-Latin characters in checkout addresses
- Block invalid or fake UK postcode districts at checkout
- Restrict knives and age-restricted items to age-checked shipping
- Australia Post, AusPost parcel lockers and courier rules on Shopify
- Royal Mail Click & Drop and UK courier rules on Shopify
- Shopify checkout customization without Plus