Fossil SCM
Disable the built-in robots.txt file. Ticket [03c9f4deef]
Commit
f2626a53c30aa43053ef1b19e40a493ba0e4fc31
Parent
c98948242ea05e4…
1 file changed
-10
-10
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -706,20 +706,10 @@ | ||
| 706 | 706 | ** will use g.zExtra directly. |
| 707 | 707 | */ |
| 708 | 708 | dehttpize(g.zExtra); |
| 709 | 709 | cgi_set_parameter_nocopy("name", g.zExtra); |
| 710 | 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 | 711 | |
| 722 | 712 | /* Locate the method specified by the path and execute the function |
| 723 | 713 | ** that implements that method. |
| 724 | 714 | */ |
| 725 | 715 | if( name_search(g.zPath, aWebpage, count(aWebpage), &idx) && |
| 726 | 716 |
| --- 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 |