Manual:Noindex

Noindex can be used to prevent indexing of a page by search engines.

Using Wikitext
To change the index preferences for specific pages, use one of these magic words:



These magic words work for a given namespace. One may need to adjust $wgExemptFromUserRobotsControl.

To test whether they function for a given page, you can use the PHP function.

Using site Configuration
There are some site configurations that can be set. Some of them:


 * Manual:$wgDefaultRobotPolicy
 * Manual:$wgExemptFromUserRobotsControl
 * Manual:$wgNamespaceRobotPolicies

Using PHP
An example code in PHP, for example to be used by extension developers, would be:

Or, if one wished to be more selective: