From: eldy <> Date: Mon, 9 Jun 2003 11:50:07 +0000 (+0000) Subject: Add meta tags robots noindex,nofollow to avoid indexing of stats pages by robots. X-Git-Tag: AWSTATS_5_6_BETA~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa8ca5e7f4dc13f5496131d7729ea8658fe0a9f6;p=thirdparty%2FAWStats.git Add meta tags robots noindex,nofollow to avoid indexing of stats pages by robots. --- diff --git a/docs/awstats_changelog.txt b/docs/awstats_changelog.txt index c43162bb..3987b94e 100644 --- a/docs/awstats_changelog.txt +++ b/docs/awstats_changelog.txt @@ -17,6 +17,8 @@ New features/improvments: SkipDNSLookupFor, ...) - StyleSheet parameter works completely now and sample of CSS files are provided. +- Add meta tags robots noindex,nofollow to avoid indexing of stats pages by + robots. - Added count for "Add to favourites" Other/Documentation: diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index 50991699..cd160bc2 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -533,7 +533,7 @@ use vars qw/ @Message /; #------------------------------------------------------------------------------ sub html_head { if (scalar keys %HTMLOutput) { - my $AllowIndex=1; + my $AllowIndex=0; # Write head section if ($FrameName ne 'index') { print "\n\n"; } else { print "\n\n"; }