Wordpress - customized pages with blocks - prohibit google seo index of blocks

131 views Asked by At

I'm using Wordpress and WooCommerce for my online shop. With the theme I'm using you can customize the product-category pages by adding "blocks".

So if I want to have a text on the top of a product category page I simply create a block page, lets say its called "category-info". I can customize this block just as a normal Wordpress page. The block will be availabe under http://example.com/block/category-info/ - but nobody will access the block site by it self because this block gets integrated in a product category page.

Finally I can fill in the name of the block in my product category settings and after this the content of the block will be shown on the product category page.

My question is what should I do in order to avoid that Google and other search engines index those "block pages" itself? Should I deny the access in the robots.txt or the xml sitemap ect? It's very important that the content of the block, which you can see on the product-category page - still gets indexed and crawled from google - just the direct link to a stand-alone block page should get removed. Thank you very much in advance

1

There are 1 answers

2
user29671 On BEST ANSWER