Fossil SCM

Add /reports to the default robot-restrict setting.

stephan 2025-08-21 14:13 trunk
Commit 12d871a00a39c81bf1555be15bf5fdfc0e4e069ebc05a1732efeaffe2b98cdc7
1 file changed +3 -3
+3 -3
--- src/robot.c
+++ src/robot.c
@@ -253,11 +253,11 @@
253253
** The VALUE of this setting is a list of GLOB patterns that match
254254
** pages for which complex HTTP requests from unauthenicated clients
255255
** should be disallowed. "Unauthenticated" means the user is "nobody".
256256
** The recommended value for this setting is:
257257
**
258
-** timelineX,diff,annotate,zip,fileage,file,finfo
258
+** timelineX,diff,annotate,zip,fileage,file,finfo,reports
259259
**
260260
** The "diff" tag covers all diffing pages such as /vdiff, /fdiff, and
261261
** /vpatch. The "annotate" tag also covers /blame and /praise. "zip"
262262
** also covers /tarball and /sqlar. If a tag has an "X" character appended,
263263
** then it only applies if query parameters are such that the page is
@@ -287,11 +287,11 @@
287287
288288
/*
289289
** Return the default restriction GLOB
290290
*/
291291
const char *robot_restrict_default(void){
292
- return "timelineX,diff,annotate,zip,fileage,file,finfo";
292
+ return "timelineX,diff,annotate,zip,fileage,file,finfo,reports";
293293
}
294294
295295
/*
296296
** Return true if zTag matches one of the tags in the robot-restrict
297297
** setting.
@@ -396,11 +396,11 @@
396396
if( robot_exception() ){
397397
robot.resultCache = KNOWN_NOT_ROBOT;
398398
return 0;
399399
}
400400
401
- /* Generate the proof-of-work captcha */
401
+ /* Generate the proof-of-work captcha */
402402
ask_for_proof_that_client_is_not_robot();
403403
return 1;
404404
}
405405
406406
/*
407407
--- src/robot.c
+++ src/robot.c
@@ -253,11 +253,11 @@
253 ** The VALUE of this setting is a list of GLOB patterns that match
254 ** pages for which complex HTTP requests from unauthenicated clients
255 ** should be disallowed. "Unauthenticated" means the user is "nobody".
256 ** The recommended value for this setting is:
257 **
258 ** timelineX,diff,annotate,zip,fileage,file,finfo
259 **
260 ** The "diff" tag covers all diffing pages such as /vdiff, /fdiff, and
261 ** /vpatch. The "annotate" tag also covers /blame and /praise. "zip"
262 ** also covers /tarball and /sqlar. If a tag has an "X" character appended,
263 ** then it only applies if query parameters are such that the page is
@@ -287,11 +287,11 @@
287
288 /*
289 ** Return the default restriction GLOB
290 */
291 const char *robot_restrict_default(void){
292 return "timelineX,diff,annotate,zip,fileage,file,finfo";
293 }
294
295 /*
296 ** Return true if zTag matches one of the tags in the robot-restrict
297 ** setting.
@@ -396,11 +396,11 @@
396 if( robot_exception() ){
397 robot.resultCache = KNOWN_NOT_ROBOT;
398 return 0;
399 }
400
401 /* Generate the proof-of-work captcha */
402 ask_for_proof_that_client_is_not_robot();
403 return 1;
404 }
405
406 /*
407
--- src/robot.c
+++ src/robot.c
@@ -253,11 +253,11 @@
253 ** The VALUE of this setting is a list of GLOB patterns that match
254 ** pages for which complex HTTP requests from unauthenicated clients
255 ** should be disallowed. "Unauthenticated" means the user is "nobody".
256 ** The recommended value for this setting is:
257 **
258 ** timelineX,diff,annotate,zip,fileage,file,finfo,reports
259 **
260 ** The "diff" tag covers all diffing pages such as /vdiff, /fdiff, and
261 ** /vpatch. The "annotate" tag also covers /blame and /praise. "zip"
262 ** also covers /tarball and /sqlar. If a tag has an "X" character appended,
263 ** then it only applies if query parameters are such that the page is
@@ -287,11 +287,11 @@
287
288 /*
289 ** Return the default restriction GLOB
290 */
291 const char *robot_restrict_default(void){
292 return "timelineX,diff,annotate,zip,fileage,file,finfo,reports";
293 }
294
295 /*
296 ** Return true if zTag matches one of the tags in the robot-restrict
297 ** setting.
@@ -396,11 +396,11 @@
396 if( robot_exception() ){
397 robot.resultCache = KNOWN_NOT_ROBOT;
398 return 0;
399 }
400
401 /* Generate the proof-of-work captcha */
402 ask_for_proof_that_client_is_not_robot();
403 return 1;
404 }
405
406 /*
407

Keyboard Shortcuts

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