From 2138c7daed8f2c80e40e4d78620ff330d833790a Mon Sep 17 00:00:00 2001 From: Kanti Date: Sun, 24 Aug 2014 13:54:34 +0200 Subject: [PATCH] To Prevent Google to index sitemaps --- system/includes/functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/includes/functions.php b/system/includes/functions.php index faf7b47..732f8d9 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -1299,6 +1299,8 @@ function get_static_path() { // Generate sitemap.xml. function generate_sitemap($str) { + header('X-Robots-Tag: noindex'); + echo ''; if ($str == 'index') {