Jump to navigation Jump to search

Noindex can be used to prevent indexing of a page by search engines. Sample code would be:


Or, if one wished to be more selective:


There are also __INDEX__ and __NOINDEX__ magic words. To make these work for a given namespace, one may need to adjust $wgExemptFromUserRobotsControl. One can test whether they function for a given page using Title::canUseNoindex().

See also[edit]

Robot policyManual:Robot policy Files: robots.txtManual:Robots.txt
Attributes: nofollowManual:NofollownoindexManual:Noindex
Configuration settings: $wgArticleRobotPoliciesManual:$wgArticleRobotPolicies$wgDefaultRobotPolicyManual:$wgDefaultRobotPolicy$wgExemptFromUserRobotsControlManual:$wgExemptFromUserRobotsControl$wgNamespaceRobotPoliciesManual:$wgNamespaceRobotPolicies