ASF Bugzilla – Attachment 19165 Details for
Bug 41025
ROBOTS META-Tag directive needed in mod_autoindex
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Adds robot directive to mod_autoindex.c
patch_mod_autoindex (text/plain), 1.26 KB, created by
Richard Schaal
on 2006-11-23 05:17:09 UTC
(
hide
)
Description:
Adds robot directive to mod_autoindex.c
Filename:
MIME Type:
Creator:
Richard Schaal
Created:
2006-11-23 05:17:09 UTC
Size:
1.26 KB
patch
obsolete
>*** /usr/src/redhat/BUILD/httpd-2.2.3/modules/generators/old.mod_autoindex.c 2006-07-11 20:38:44.000000000 -0700 >--- /usr/src/redhat/BUILD/httpd-2.2.3/modules/generators/mod_autoindex.c 2006-11-21 07:33:08.000000000 -0800 >*************** >*** 150,155 **** >--- 150,159 ---- > * This routine puts the standard HTML header at the top of the index page. > * We include the DOCTYPE because we may be using features therefrom (i.e., > * HEIGHT and WIDTH attributes on the icons if we're FancyIndexing). >+ * >+ * Adding in 'robots' directive to play nice with ht://dig >+ * This eliminates the index/directory listings - playing a big part in the >+ * results of a search. This gives a higher quality result to the search. > */ > static void emit_preamble(request_rec *r, int xhtml, const char *title) > { >*************** >*** 161,166 **** >--- 165,171 ---- > ap_rvputs(r, xhtml ? DOCTYPE_XHTML_1_0T : DOCTYPE_HTML_3_2, > "<html>\n <head>\n <title>Index of ", title, > "</title>\n", NULL); >+ ap_rvputs(r, " <meta name=\"robots\" content=\"noindex,follow\">\n", NULL); > if (d->style_sheet != NULL) { > ap_rvputs(r, " <link rel=\"stylesheet\" href=\"", d->style_sheet, > "\" type=\"text/css\"", xhtml ? " />\n" : ">\n", NULL);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 41025
: 19165 |
19304