]> granicus.if.org Git - php/commitdiff
MFH: Added a meta tag to phpinfo() output to prevent search engines from
authorIlia Alshanetsky <iliaa@php.net>
Sun, 26 Nov 2006 16:45:29 +0000 (16:45 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 26 Nov 2006 16:45:29 +0000 (16:45 +0000)
indexing the page.

NEWS
ext/standard/info.c

diff --git a/NEWS b/NEWS
index 470e3c66e825eae279ee0dde01db044026b2e214..f6191ab3879b99f7db5ff0018dd787580e8db9f4 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,8 @@
 PHP 4                                                                      NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? ??? 2006, Version 4.4.5
+- Added a meta tag to phpinfo() output to prevent search engines from 
+  indexing the page. (Ilia)
 - Updated PCRE to version 6.7. (Ilia)
 - Fixed missing open_basedir check inside chdir() function. (Ilia)
 - Fixed bug #39583 (ftp_put() does not change transfer mode to ASCII). (Tony)
index 6aa803abeb7cce3b3705c880e78b3459af0be157..f2605f98f265075e70d19bf48505901e03d32613 100644 (file)
@@ -374,6 +374,7 @@ PHPAPI void php_print_info_htmlhead(TSRMLS_D)
        PUTS("<head>\n");
        php_info_print_style();
        PUTS("<title>phpinfo()</title>");
+       PUTS("<meta name=\"ROBOTS\" content=\"NOINDEX,NOFOLLOW,NOARCHIVE\" />");
 /*
        php_printf("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=%s\" />\n", charset);
 */