My magento store has the following to allow google/search engines to crawl the entire site.
<meta name="robots" content="INDEX,FOLLOW" />
I am now in need for some particular products to have:
<meta name="robots" content="NOINDEX,NOFOLLOW" />
so that google doesn't crawl/index them. Is this possible? Products would be random (i.e not all from one category) so I need to be able to do this on a product by product basis if needed.
I know i could do it on a url basis like:
<?php
$currentUrl = Mage::helper('core/url')->getCurrentUrl();
if ($currentUrl == 'xxxxxxx')
{
<meta name="robots" content="NOINDEX,NOFOLLOW" />
}
else
{
<meta name="robots" content="INDEX,FOLLOW" />
}
?>
but there could end up over time to be hundreds/thousands of these.