There are a number of options built in to WooCommerce that allow you to limit the WooCommerce Catalog Visibility and WooCommerce Product Visibility without a plugin or custom code.
How you go about disabling, hiding or making a Product Page Private in WooCommerce will depend on why you’re trying to hide the product visibility.
If you want to make the WooCommerce product page private so only Admins can see the page, add the product to cart and test the WooCommerce store, you’ll take a very different approach to if you’re simply wanting to hide a Product Page whilst you’re designing it or adding content.
Equally, if you want to make the WooCommerce Product Visibility Private and only visible to select members, not necessarily webmasters or WordPress users, you’ll take a different approach again.
So be clear on why you want to hide WooCommerce Products to make sure you select the appropriate choice for your specific needs.
(Don’t forget to think about indexing and no-indexing implications – I’ve highlighted impact on each option)