XF 1.3 Can I stop Google indexing an off-topic forum without closing it for guests?


Formerly CyclingTribe
I'd like to exclude all threads and posts from my off-topic forum from Google's index, but at the same time keep the threads viewable for guests - is this possible?

Shaun :D

Chris D

XenForo developer
Staff member
Basically add this to a few templates:

<xen:if is="{$forum.node_id} == 2">
    <xen:container var="$head.noindex">
        <meta name="robots" content="noindex" /></xen:container>
Where 2 is the forum that should be noindex.

Specifically, thread_view and forum_view but there may be others.