Global "no index no follow"?

Former Member
Former Member

Is there a way to set our entire staging area site to "no index no follow"? We are interested in this because we need to temporarily remove our gate page in order to run a cookiebot scan. Thanks.

Parents
  • Yes, two options:

    1. Via Widget - You can add meta tags with the core_v2_page Script API using the AddMetaTag(key,value) method. The attached widget add the header you mentioned.
      1. To install, import the widget and add it to the home page footer and lock it. Be aware that if you export the theme this will be included.
    2. Via Site Administration
      1. Goto Administration -> Syndication and SEO Options -> Raw header and add <meta name="robots" content="noindex, nofollow">
      2. NOTE: Using this method you will still see other meta rendered on some pages but the most restrictive is honored (at least by Google) when there are conflicting.

    <scriptedContentFragments>
    	<scriptedContentFragment name="Robots (SEO) - No Index, No Follow" version="11.0.0.0" description="Adds robots &quot;no index, no follow&quot; to page(s)" instanceIdentifier="5496d58458ba40b7b94e37f05829ca9f" theme="" isCacheable="true" varyCacheByUser="false" showHeaderByDefault="false" cssClass="" lastModified="2021-02-11 18:07:40Z">
    		<contentScript language="JavaScript"><![CDATA[core_v2_page.AddMetaTag("robots", "noindex, nofollow"); ]]></contentScript>
    		<headerScript language="Velocity" />
    		<additionalCssScript language="Velocity" />
    	</scriptedContentFragment>
    </scriptedContentFragments>

Reply
  • Yes, two options:

    1. Via Widget - You can add meta tags with the core_v2_page Script API using the AddMetaTag(key,value) method. The attached widget add the header you mentioned.
      1. To install, import the widget and add it to the home page footer and lock it. Be aware that if you export the theme this will be included.
    2. Via Site Administration
      1. Goto Administration -> Syndication and SEO Options -> Raw header and add <meta name="robots" content="noindex, nofollow">
      2. NOTE: Using this method you will still see other meta rendered on some pages but the most restrictive is honored (at least by Google) when there are conflicting.

    <scriptedContentFragments>
    	<scriptedContentFragment name="Robots (SEO) - No Index, No Follow" version="11.0.0.0" description="Adds robots &quot;no index, no follow&quot; to page(s)" instanceIdentifier="5496d58458ba40b7b94e37f05829ca9f" theme="" isCacheable="true" varyCacheByUser="false" showHeaderByDefault="false" cssClass="" lastModified="2021-02-11 18:07:40Z">
    		<contentScript language="JavaScript"><![CDATA[core_v2_page.AddMetaTag("robots", "noindex, nofollow"); ]]></contentScript>
    		<headerScript language="Velocity" />
    		<additionalCssScript language="Velocity" />
    	</scriptedContentFragment>
    </scriptedContentFragments>

Children
No Data