Country Based Restrictions for WooCommerce
Country Based Restrictions for WooCommerce lets you control exactly which products are visible and purchasable based on your customer’s country — using WooCommerce’s built-in geolocation engine (MaxMind GeoIP2) for 99.5% accuracy. Whether you’re selling region-specific products, dealing with legal compliance restrictions, or managing international distribution agreements, CBR gives you precise control over your catalog by country — without any coding. HPOS Compatible · 5,000+ Active Stores · Free & Open Source What You Can Do Restrict products per country — For any product, choose a list of countries to include (sell only to) or exclude (block from). Set it per product in seconds. Three visibility modes — Choose how restricted products behave for blocked customers: Hide completely from shop, search, and category pages Hide from shop and search but allow direct URL access Keep visible but non-purchasable (show with a custom message instead of Add to Cart) Include or exclude rules — For each product, choose whether the country list means “sell only to these countries” or “do not sell to these countries”. Works with WooCommerce Geolocation — Uses the shipping country the customer enters, falling back to WooCommerce Geolocation (MaxMind GeoIP2) when no shipping country is set yet. Supports product variations — Apply country restrictions to individual variations within a variable product, not just the whole product. HPOS Compatible — Fully compatible with WooCommerce High-Performance Order Storage (custom order tables). Translation ready — Fully translatable via standard WordPress/WooCommerce translation tools. How It Works Install and activate the plugin. Go to WooCommerce > Country Restrictions to configure the default visibility settings. Open any product and set the country restriction rule — choose include or exclude, and select the countries. Customers visiting from a restricted country will see the product according to your chosen visibility mode. Free vs PRO — What’s the Difference? CBR Free gives you per-product country restrictions. CBR PRO adds bulk tools, payment gateway control, and advanced display options for stores managing restrictions at scale. CBR Free includes: Per-product country restriction rules (include or exclude) Three visibility modes: hide completely, hide from shop/search, or show but block purchase Variation-level restrictions WooCommerce Geolocation detection (MaxMind GeoIP2) HPOS compatible CBR PRO adds: Bulk restrictions by category, tag, attribute, or shipping class — Apply rules to entire product groups at once instead of editing each product individually. Global restriction rules — Apply one rule across all products sitewide. Bulk CSV import — Import country rules for hundreds of products at once. Disable payment gateways by country — Hide or disable specific payment methods (PayPal, Stripe, etc.) for customers from restricted countries. Hide product prices by country — Show the product but hide the price for restricted countries. Country detection widget — Let customers manually change their detected country from the storefront. Custom restriction messages — Set a custom message per product shown to restricted customers instead of the Add to Cart button. Redirect restricted customers — Redirect blocked visitors to a custom page instead of showing an error. Remove bulk rules — Clear single-product rules in bulk via the product list bulk actions. Priority support — Faster, dedicated assistance from the Zorem team. 👉 Get CBR PRO Who Uses Country Based Restrictions Any WooCommerce store that cannot, or does not want to, sell everything everywhere: Brands with territory or distribution agreements — a licence that covers some markets and not others, enforced on the storefront rather than in a spreadsheet. Alcohol, tobacco and vape retailers — products that are legal in one market and not in the next. Supplement and wellness stores — ingredient rules differ by country, so one SKU may be sellable in a handful of markets only. Age- or licence-restricted goods — items that may only be offered where the customer can lawfully receive them. Digital and licensed media — regional rights that decide who may buy a title. Food, fresh and perishable goods — restricted to the markets you can actually reach in time. Heavy, bulky or hazardous items — products your freight carrier will not move across certain borders. Dropshippers — suppliers who ship only to specific regions, so the catalogue should match what can be fulfilled. Wholesale and B2B stores — different catalogues for different regional buyers. Stores entering a new market — open a product range to one country first and expand once it works. Please note: Country Based Restrictions is a merchandising and storefront control tool. It helps you decide what each visitor can see and buy based on their detected country. It is not a legal or sanctions compliance product, and it should not be relied on as one — country detection can be wrong, and determined visitors can work around any geolocation. Where the law decides who you may sell to, treat this plugin as one layer alongside proper compliance checks, not a replacement for them. Compatible With CBR is tested and compatible with: Multilingual plugins — WPML, Polylang, Weglot Page builders — Elementor, Divi, WPBakery (Visual Composer) Wholesale plugins — Wholesale for WooCommerce Search plugins — Advanced Search for WooCommerce Subscriptions — WooCommerce Subscriptions (variation restriction supported) Multi-currency — Works alongside currency switcher plugins ⚠️ Important note for caching: Caching plugins (WP Rocket, W3 Total Cache, SiteGround Optimizer) and CDNs can serve cached pages that bypass geolocation detection. Ensure your caching is configured to exclude geolocation cookies and country detection from the cache. See the documentation for setup guidance. Documentation & Support 📖 Full documentation 💬 WordPress.org support forum More Plugins by Zorem Advanced Shipment Tracking for WooCommerce — The #1 WooCommerce shipment tracking plugin. Trusted by 70,000+ stores. SMS for WooCommerce — Automated SMS order and shipping notifications via Twilio, WhatsApp, and 18 other providers. Customer Email Verification PRO — Block fake accounts and spam orders with OTP-based email verification. Advanced Local Pickup PRO — Advanced local pickup with multiple locations, appointment scheduling, and ready-for-pickup notifications. Zorem Returns — Self-service returns, exchanges, and store credit management for WooCommerce. Explore the full catalog at zorem.com
Smush
Compress images, optimize images, and enable image lazy load automatically with the powerful Smush image optimizer to keep your WordPress site fast, without losing quality. Smush makes it easy to optimize images, compress images, and deliver images faster across your entire WordPress site. This all-in-one image optimizer automatically reduces image file sizes, enables image lazy load, and serves modern formats like WebP and AVIF, all without breaking image quality or adding extra work. Whether you’re running a blog, store, or portfolio, Smush helps you optimize images at scale and keep your site fast with a trusted WordPress image optimizer. Trusted by 1+ Million Sites | 4.8/5 Star Rating Get everything you need to optimize images and speed up your site. Smush works out of the box with no complicated setup – just install and let it handle the rest. Compress images without losing quality Reduce image file size automatically while keeping your images sharp and clear. Smush is an easy-to-use image optimizer which let’s you compress images using both lossless and lossy compression, giving you the best balance of quality and performance without extra work. You can also compress images outside the media library using Directory Smush, making it easy to optimize images stored in theme folders, plugins, or other directories on your server. Lazy load images for faster pages Enable image lazy load across your site so images load only when needed. This image optimizer improves initial page speed and creates a smoother experience for visitors without extra configuration. Serve WebP and AVIF images automatically (PRO) Convert images to WebP and AVIF and serve them automatically to supported browsers. Smush helps you optimize images using next-gen formats to reduce file size and improve load times across your WordPress site. Deliver images faster with an Image CDN (PRO) Serve images through a global image CDN to reduce latency and improve load times for visitors around the world. 119 global CDN servers Up to 500 GB of bandwidth Faster image delivery based on visitor location Improved performance for image-heavy and high-traffic sites Automatically resize and fix image dimensions (PRO) Eliminate common PageSpeed warnings and improve layout stability with automatic image sizing. Smush dynamically resizes images to perfectly fit their containers, regardless of original size, helping fix the “Properly size images” warning in Google PageSpeed Insights. It also automatically adds missing width and height attributes to your images, improving rendering speed and reducing layout shifts. This helps you meet the “Ensure images have explicit width and height” recommendation without any manual work. Optimize your entire site, automatically Smush works across your whole site as a powerful image optimizer to optimize images as you upload them and maintain performance over time without manual work. Optimize images automatically on upload Compress images in bulk or individually Works with your existing media library No need to re-upload images Enable image lazy load across your site Convert images to WebP and AVIF Deliver images with an integrated image CDN Automatically resize and serve correctly sized images Optimize images outside the media library with Directory Smush Built for performance Smush improves page speed and overall performance by reducing image weight and improving how images are delivered. Reduce page load times Improve user experience Better performance for image-heavy pages Supports image lazy load and preload images (PRO) for faster perceived performance Works with your existing setup Smush is built to work with your current WordPress setup, including popular themes, page builders, and plugins. Compatible with Gutenberg, Elementor, WPBakery, and more Works with WooCommerce stores No need to change your workflow Easy to enable and configure Designed to be simple You don’t need to be a performance expert to optimize images with Smush image optimizer. Works out of the box Simple settings when you need them No technical knowledge required Safe to use on any site Why choose Smush? There are plenty of image optimization plugins, but Smush focuses on making it easy to optimize images, compress images, and improve performance without complexity. As a leading WordPress image optimizer, Smush gives you powerful optimization tools without the technical hassle. Trusted by over 1 million WordPress users Built specifically for WordPress Regular updates and improvements Backed by the WPMU DEV team Get started in minutes Install Smush, activate it, and start to compress images, optimize images, and enable image lazy load right away. This easy-to-use image optimizer helps most sites see improvements immediately without changing how they upload or manage images. About Us WPMU DEV is a premium supplier of quality WordPress plugins, services and support. Learn more here: https://wpmudev.com/ Don’t forget to stay up to date on everything WordPress from the Internet’s number one resource: WPMU DEV Blog Hey, one more thing… we hope you enjoy our free offerings as much as we’ve loved making them for you! Contact and Credits Originally written by Alex Dunae at Dialect (dialect.ca, e-mail ‘alex’ at ‘dialect dot ca’), 2008-11.