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.

florian 2026-02-03 12:47 trunk
Commit 67726b6e82882f9aa51589e4251dc2b0603da7cc63c757eb0f5a3eae8eb99a4a
2 files changed +2 +1 -1
--- src/robot.c
+++ src/robot.c
@@ -320,10 +320,12 @@
320320
321321
/*
322322
** Return the default restriction GLOB
323323
*/
324324
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. */
325327
return "timelineX,diff,annotate,fileage,file,finfo,reports,"
326328
"tree,hexdump,download";
327329
}
328330
329331
/*
330332
--- 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
--- www/antibot.wiki
+++ www/antibot.wiki
@@ -139,11 +139,11 @@
139139
The [/help/robot-restrict|robot-restrict setting] is a comma-separated
140140
list of GLOB patterns for pages for which robot access is prohibited.
141141
The default value is:
142142
143143
<blockquote><pre>
144
-timelineX,diff,annotate,fileage,file,finfo,reports
144
+timelineX,diff,annotate,fileage,file,finfo,reports,tree,hexdump,download
145145
</pre></blockquote>
146146
147147
Each entry corresponds to the first path element on the URI for a
148148
Fossil-generated page. If Fossil does not know for certain that the
149149
HTTP request is coming from a human, then any attempt to access one of
150150
--- 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

Keyboard Shortcuts

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