For more on this topic we will refer you to Google's page on Block or remove pages using a robots.txt file.
Hiding a category
Specifically in ProductCart, you can hide a category using the robots.txt wildcards. This is helpful if Google is finding old categories or categories that do not exist for a number of reasons.
The following code will hide all categories with an ID of “0”.