GeoShield Lite is a geolocation-based product restriction plugin for WooCommerce. It gives store owners control over which products are visible or purchasable based on a visitor's country.
This is useful for stores that need to comply with international licensing agreements, regional distribution contracts, or country-specific product availability rules.
How It Works
GeoShield Lite primarily uses the built-in WooCommerce geolocation system (MaxMind GeoIP database) to detect a visitor's country. To ensure a seamless "out-of-the-box" experience for stores without a MaxMind configuration, the plugin includes a fail-safe fallback to a legitimate third-party geolocation service. Based on per-product restriction rules you configure, the plugin can either hide products entirely or disable the purchase button for visitors from specified countries.
All restriction logic runs locally using WordPress metadata — external API calls are used strictly as a fallback for country identification when local detection is unavailable.
Features
- Per-Product Restrictions — Define unique country restriction rules directly within the WooCommerce product editor.
- Variation-Level Overrides — Apply independent geographic rules to specific product variations.
- Blacklist and Whitelist Modes — Block selected countries (blacklist) or allow only selected countries (whitelist).
- Two Restriction Actions — Hide the product completely from the catalog, or keep it visible but disable the purchase button.
- Custom Restriction Messages — Display a configurable message to visitors who are restricted from purchasing.
- Automatic Catalog Filtering — Restricted products are automatically filtered from the shop page, category pages, search results, and related product sections.
- WooCommerce Blocks Compatibility — Works with both classic and block-based Cart and Checkout pages.
- HPOS Compatible — Fully compatible with WooCommerce High-Performance Order Storage.
Configuration
After activation, configure restrictions on individual products:
- Edit any WooCommerce product.
- Open the Country Restrictions tab in the Product Data panel.
- Enable restrictions and select your target countries.
- Choose between Hide Product or Disable Purchase.
- Save the product.
Global settings are available under the
GeoShield > Settings menu.