Setting the robots meta tag is generally easier than the x-robots-tag, but the implementation of both methods of controlling how search engines crawl and index your site may vary depending on your CMS andor server type.
Here’s how to use the meta robots tag and x-robots-tag in common setups:
If you can edit the HTML code of a page, simply add your robots meta tag directly to the <head> section of the page.
If you want search engines not to index a page, but want to follow the link, for example, use:
<meta name="robots" content="noindex, follow" >
Using the Robots Meta Tag in WordPress
If you’re using Yoast SEO, open the Advanced tab in the block india mobile database below the page editor.
You can set a "noindex" directive by setting the "Allow search engines to show this page in search results?" drop-down menu to None or block links after setting "Should search engines follow links to this page?" to None.
For any additional directives, you need to implement them in the "Meta robots advanced" field.
If you use RankMath, you can select the robots directive you wish to apply directly from the Advanced tab of the meta box:
Using the robots meta tag on Shopify
If you need to implement a robots meta tag on Shopify, you need to do so by editing the <head> section of your theme.liquid layout file.