WindCodex GeoBlock – WooCommerce country restrictions with geolocation

Changelog

1.0.0

  • Initial release.
  • Three restriction modes: Hide completely, Hide from catalog (Catalog Only), Show restriction message.
  • Per-product Include/Exclude country rules with searchable Select2 country selector.
  • Custom restriction message with HTML support and configurable position on product page (4 positions).
  • Redirect URL option for Hide completely mode.
  • Allow purchase via direct URL toggle for Catalog Only mode.
  • 6-layer country detection: shipping address -> billing address -> WC session -> transient cache -> MaxMind GeoLite2 -> store base.
  • Cloudflare CF-Connecting-IP header support for reverse-proxied sites.
  • Session and transient caching for geolocation performance (1-hour TTL).
  • Force Geolocation option to ignore saved addresses and always use IP detection.
  • Cart and checkout protection – restricted products added before rule was applied are auto-removed.
  • Server-side add-to-cart validation via woocommerce_add_to_cart_validation blocks API/AJAX bypass attempts.
  • Variation ID parent resolution – rules on parent product correctly block all child variations.
  • [geoblock_product_message] shortcode for page builder and custom template compatibility.
  • Admin debug toolbar (admin-only) showing country, IP, and detection source.
  • AJAX save and reset with toast notifications and sticky footer save bar.
  • HPOS (High-Performance Order Storage) compatibility declared.
  • WooCommerce Blocks compatibility.
  • Built-in compatibility: Price Based on Country, WPML, WooCommerce Product Bundles, WooCommerce Subscriptions, WP Rocket, Speed Optimizer by SiteGround.
  • Translation-ready with complete .pot file included.

Plugin Website
Visit website

Author
WindCodex
Version:
1.0.0
Last Updated
April 20, 2026
Requires
WordPress 5.8
Tested Up To
WordPress 6.9.4
Requires PHP
7.4

Share Post

Join our newsletter.

Get insights into what’s happening at ChangelogWP right in your inbox. We don’t believe in spam.