Manual:$wgExemptFromUserRobotsControl

Details
An array of namespace keys in which the __INDEX__/__NOINDEX__ magic words will not function, so users can't decide whether pages in that namespace are indexed by search engines. If set to null, default to $wgContentNamespaces.

Example:

Or, to switch it off entirely: