WooCommerce geolocation plugin lets you block products, categories, CMS pages or whole store for specific customers. You can restrict specific IP, country, and region from the back office. This plugin also detects IP address of your website visitors automatically, so you can easily restrict the unwanted customers by their IPs. You can also display any message to blocked users or redirect them to any other URL related to them. There is a whitelist which enables you to allow access to your e-stores to specific customers by putting their IPs in the whitelist.