Fossil SCM
Update the default value of the robot-restrict setting mentioned in the Defense against Spiders and Robots document, and add a source code comment indicating where the setting is referenced.
Commit
67726b6e82882f9aa51589e4251dc2b0603da7cc63c757eb0f5a3eae8eb99a4a
Parent
d55227eceead1d4…
2 files changed
+2
+1
-1
+2
| --- src/robot.c | ||
| +++ src/robot.c | ||
| @@ -320,10 +320,12 @@ | ||
| 320 | 320 | |
| 321 | 321 | /* |
| 322 | 322 | ** Return the default restriction GLOB |
| 323 | 323 | */ |
| 324 | 324 | const char *robot_restrict_default(void){ |
| 325 | + /* NOTE: The default value is also mentioned in the online help screen of | |
| 326 | + ** the "robot-restrict" setting, and in the www/antibot.wiki document. */ | |
| 325 | 327 | return "timelineX,diff,annotate,fileage,file,finfo,reports," |
| 326 | 328 | "tree,hexdump,download"; |
| 327 | 329 | } |
| 328 | 330 | |
| 329 | 331 | /* |
| 330 | 332 |
| --- src/robot.c | |
| +++ src/robot.c | |
| @@ -320,10 +320,12 @@ | |
| 320 | |
| 321 | /* |
| 322 | ** Return the default restriction GLOB |
| 323 | */ |
| 324 | const char *robot_restrict_default(void){ |
| 325 | return "timelineX,diff,annotate,fileage,file,finfo,reports," |
| 326 | "tree,hexdump,download"; |
| 327 | } |
| 328 | |
| 329 | /* |
| 330 |
| --- src/robot.c | |
| +++ src/robot.c | |
| @@ -320,10 +320,12 @@ | |
| 320 | |
| 321 | /* |
| 322 | ** Return the default restriction GLOB |
| 323 | */ |
| 324 | const char *robot_restrict_default(void){ |
| 325 | /* NOTE: The default value is also mentioned in the online help screen of |
| 326 | ** the "robot-restrict" setting, and in the www/antibot.wiki document. */ |
| 327 | return "timelineX,diff,annotate,fileage,file,finfo,reports," |
| 328 | "tree,hexdump,download"; |
| 329 | } |
| 330 | |
| 331 | /* |
| 332 |
+1
-1
| --- www/antibot.wiki | ||
| +++ www/antibot.wiki | ||
| @@ -139,11 +139,11 @@ | ||
| 139 | 139 | The [/help/robot-restrict|robot-restrict setting] is a comma-separated |
| 140 | 140 | list of GLOB patterns for pages for which robot access is prohibited. |
| 141 | 141 | The default value is: |
| 142 | 142 | |
| 143 | 143 | <blockquote><pre> |
| 144 | -timelineX,diff,annotate,fileage,file,finfo,reports | |
| 144 | +timelineX,diff,annotate,fileage,file,finfo,reports,tree,hexdump,download | |
| 145 | 145 | </pre></blockquote> |
| 146 | 146 | |
| 147 | 147 | Each entry corresponds to the first path element on the URI for a |
| 148 | 148 | Fossil-generated page. If Fossil does not know for certain that the |
| 149 | 149 | HTTP request is coming from a human, then any attempt to access one of |
| 150 | 150 |
| --- www/antibot.wiki | |
| +++ www/antibot.wiki | |
| @@ -139,11 +139,11 @@ | |
| 139 | The [/help/robot-restrict|robot-restrict setting] is a comma-separated |
| 140 | list of GLOB patterns for pages for which robot access is prohibited. |
| 141 | The default value is: |
| 142 | |
| 143 | <blockquote><pre> |
| 144 | timelineX,diff,annotate,fileage,file,finfo,reports |
| 145 | </pre></blockquote> |
| 146 | |
| 147 | Each entry corresponds to the first path element on the URI for a |
| 148 | Fossil-generated page. If Fossil does not know for certain that the |
| 149 | HTTP request is coming from a human, then any attempt to access one of |
| 150 |
| --- www/antibot.wiki | |
| +++ www/antibot.wiki | |
| @@ -139,11 +139,11 @@ | |
| 139 | The [/help/robot-restrict|robot-restrict setting] is a comma-separated |
| 140 | list of GLOB patterns for pages for which robot access is prohibited. |
| 141 | The default value is: |
| 142 | |
| 143 | <blockquote><pre> |
| 144 | timelineX,diff,annotate,fileage,file,finfo,reports,tree,hexdump,download |
| 145 | </pre></blockquote> |
| 146 | |
| 147 | Each entry corresponds to the first path element on the URI for a |
| 148 | Fossil-generated page. If Fossil does not know for certain that the |
| 149 | HTTP request is coming from a human, then any attempt to access one of |
| 150 |