Manual:$wgNamespaceRobotPolicies

Details
Robot policies for namespaces, e.g. tag

e.g.

The default policy is 'index,follow', the array is made of namespace constants as defined in includes/Defines.php