Skip to content

Instantly share code, notes, and snippets.

@jackreichert
Created January 19, 2012 00:26
Show Gist options
  • Save jackreichert/1636729 to your computer and use it in GitHub Desktop.
Save jackreichert/1636729 to your computer and use it in GitHub Desktop.
Adds global NOINDEX,NOFOLLOW meta to site headers
## Adds global NOINDEX,NOFOLLOW meta to site headers
$wgExtensionFunctions[] = 'globalNoIndex';
function globalNoIndex(){
global $wgOut;
$wgOut->addMeta ( 'ROBOTS' , 'NOINDEX,NOFOLLOW') ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment