Use Advanced Geo Restrictions to block checkout for a destination based on the products or shoppers involved. Start with one rule on a staging copy of your store, then verify both a blocked address and an allowed address before applying the rule to your live store.
Install the plugin
You’ll need WordPress 6.4 or later, PHP 7.4 or later, and WooCommerce 8.5 or later installed and active. These are the requirements declared by Advanced Geo Restrictions 1.1.0.
- In WordPress, go to Plugins → Add New Plugin → Upload Plugin. Select the ZIP from your WebMe purchase, then click Install Now and Activate Plugin.
- To enable updates and support, go to Settings → WebMe Licenses as a site administrator. Paste the key from your receipt or WebMe account into the row for Advanced Geo Restrictions for WooCommerce, then click Save keys. Use Check now to refresh the status if needed.
- Open WooCommerce → Geo Restrictions → Rule Manager. Use an account with permission to manage WooCommerce.
Create your first shipping restriction
This example blocks shipping for one physical product to US ZIP codes that start with 90. Choose a test product and two valid addresses that your existing WooCommerce shipping setup can serve.
| Rule field | Example value |
|---|---|
| Priority | 10 for an isolated first rule |
| Status | Inactive while you review the rule |
| Target type | Entire cart |
| Product scope | Only selected products |
| Scoped products | Search for and select your test product |
| Geo type | Postcode |
| Geo codes | US:90* |
| Action | Deny |
| Address type | Shipping |
- Click New rule, enter the values above, and click Save rule.
- Verify that Geo Rules shows the right postcode pattern and the rule is inactive. To run the checkout tests, select the rule, change Status to Active, and click Save rule again.
Use comma-separated entries for multiple areas. For Country, use two-letter codes such as US, CA. For State, use country-qualified codes such as US:CA for California. For Postcode, use an exact value such as US:90210 or a wildcard such as US:90* for a prefix. Set Address type to Billing for billing-only checks or Both to check both address types.
Rules run from the lowest Priority number to the highest. The first matching active rule decides the outcome for that address. To make an Allow rule an exception to a broader Deny rule, give the exception a lower number. Destinations that match no rule remain subject to your existing WooCommerce settings.
Verify checkout
Test in a private browser window as a guest, or sign in as a regular customer if your store requires an account. Use a shipping method other than local pickup and staging payment settings.
| Cart and shipping address | Expected result |
|---|---|
Selected product with a matching ZIP, such as 90210 | Shipping rates for the blocked destination may disappear, and the shopper cannot complete checkout for that address. |
| Same product with a valid, serviceable ZIP outside the pattern | Shipping and checkout proceed if the rest of the store’s requirements are met. |
| A different shippable product with the original matching ZIP | Shipping and checkout proceed if the rest of the store’s requirements are met. |
Repeat these checks in each checkout you use, including classic checkout and Checkout Blocks. If your store uses a headless storefront, test its actual order submission flow as well. If customers can enter separate billing and shipping addresses, test both combinations to confirm that the Shipping rule follows the shipping address. Return the example rule to Inactive when testing is complete, then use the same steps to verify your real rule on staging.
Troubleshoot a rule
- A rule has no effect. Check that it is active, that the intended product appears under Scoped products, and that the address matches Geo type, Geo codes, and Address type. Check for an earlier matching rule. Virtual-only carts and orders using local pickup alone can bypass restrictions. The Enable Admin God Mode setting allows users with WooCommerce management permission to bypass restrictions.
- An eligible address has no shipping rates. Check the WooCommerce shipping zone and available methods for that address. If necessary, turn the rule inactive temporarily on staging and retest the same cart and address.
- You need to see which rule matched. Open WooCommerce → Geo Restrictions → Global Settings, turn on Enable Debug Logging, and click Save settings. Reproduce the result and look for the
webme-geo-restrictionssource in WooCommerce → Status → Logs. Turn debug logging off again after testing.
Back up and move rules
In Rule Manager → Import / Export, click Export rules and save the contents of Rule JSON. To move rules to another store, first export the destination store’s rules as a backup. Import rules replaces the entire rule list. A blank field or an empty JSON array clears the list. Review any product, category, or user IDs and shipping method identifiers against the destination store before importing, then repeat your checkout tests.