Using the WordPress Admin is the most straightforward option. To install:
- In your WordPress admin, go to Plugins > Add New.
- Search for “Country Based Restrictions”.
- Install and Activate the Country Based Restrictions for WooCommerce plugin (by zorem)
To complete the setup, navigate to: WooCommerce > Country Restrictions