Fossil SCM

Disable the built-in robots.txt file. Ticket [03c9f4deef]

drh 2010-02-09 12:31 trunk
Commit f2626a53c30aa43053ef1b19e40a493ba0e4fc31
1 file changed -10
-10
--- src/main.c
+++ src/main.c
@@ -706,20 +706,10 @@
706706
** will use g.zExtra directly.
707707
*/
708708
dehttpize(g.zExtra);
709709
cgi_set_parameter_nocopy("name", g.zExtra);
710710
}
711
-
712
- /* Prevent robots from indexing this site.
713
- */
714
- if( strcmp(g.zPath, "robots.txt")==0 ){
715
- cgi_set_content_type("text/plain");
716
- @ User-agent: *
717
- @ Disallow: /
718
- cgi_reply();
719
- exit(0);
720
- }
721711
722712
/* Locate the method specified by the path and execute the function
723713
** that implements that method.
724714
*/
725715
if( name_search(g.zPath, aWebpage, count(aWebpage), &idx) &&
726716
--- src/main.c
+++ src/main.c
@@ -706,20 +706,10 @@
706 ** will use g.zExtra directly.
707 */
708 dehttpize(g.zExtra);
709 cgi_set_parameter_nocopy("name", g.zExtra);
710 }
711
712 /* Prevent robots from indexing this site.
713 */
714 if( strcmp(g.zPath, "robots.txt")==0 ){
715 cgi_set_content_type("text/plain");
716 @ User-agent: *
717 @ Disallow: /
718 cgi_reply();
719 exit(0);
720 }
721
722 /* Locate the method specified by the path and execute the function
723 ** that implements that method.
724 */
725 if( name_search(g.zPath, aWebpage, count(aWebpage), &idx) &&
726
--- src/main.c
+++ src/main.c
@@ -706,20 +706,10 @@
706 ** will use g.zExtra directly.
707 */
708 dehttpize(g.zExtra);
709 cgi_set_parameter_nocopy("name", g.zExtra);
710 }
 
 
 
 
 
 
 
 
 
 
711
712 /* Locate the method specified by the path and execute the function
713 ** that implements that method.
714 */
715 if( name_search(g.zPath, aWebpage, count(aWebpage), &idx) &&
716

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button