function copyprevention_robotstxt in Copy Prevention 7
Same name and namespace in other branches
- 8 copyprevention.module \copyprevention_robotstxt()
Implements hook_robotstxt().
File
- ./
copyprevention.module, line 106 - Main file for Copy Prevention module.
Code
function copyprevention_robotstxt() {
$copyprevention_images_search = array_filter(variable_get('copyprevention_images_search', array()));
if (array_key_exists('robotstxt', $copyprevention_images_search)) {
return array(
'#Copy Prevention: protect/hide images from search engines indexing',
'Disallow: *.jpg',
'Disallow: *.JPG',
'Disallow: *.jpeg',
'Disallow: *.JPEG',
'Disallow: *.png',
'Disallow: *.PNG',
'Disallow: *.gif',
'Disallow: *.GIF',
);
}
return array();
}