I recently purchased two nopCommerce licenses for my new projects. However, I discovered that some pages on my site are being indexed by Google when they shouldn't be. For instance, the following URL is being indexed:
https://demo.nopcommerce.com/category/products?categoryId=2
or
https://demo.nopcommerce.com/category/products?categoryId=3&pagenumber=1
This URL is generated by nopCommerce, and similar URLs can be created by changing the category or page number IDs. This is detrimental to SEO, and Google has started indexing such URLs from my website.
The page should return 404.
How can I prevent these pages from being generated automatically? Can anyone help?