| | @@ -263,20 +263,22 @@ |
| 263 | 263 | ** The VALUE of this setting is a list of GLOB patterns that match |
| 264 | 264 | ** pages for which complex HTTP requests from unauthenticated clients |
| 265 | 265 | ** should be disallowed. "Unauthenticated" means the user is "nobody". |
| 266 | 266 | ** The recommended value for this setting is: |
| 267 | 267 | ** |
| 268 | | -** timelineX,diff,annotate,fileage,file,finfo,reports |
| 268 | +** timelineX,diff,annotate,fileage,file,finfo,reports,tree,ziplink,hexdump |
| 269 | 269 | ** |
| 270 | 270 | ** The "diff" tag covers all diffing pages such as /vdiff, /fdiff, and |
| 271 | 271 | ** /vpatch. The "annotate" tag also covers /blame and /praise. "zip" |
| 272 | | -** also covers /tarball and /sqlar. If a tag has an "X" character appended, |
| 273 | | -** then it only applies if query parameters are such that the page is |
| 274 | | -** particularly difficult to compute. In all other case, the tag should |
| 275 | | -** exactly match the page name. Useful "X" tags include "timelineX" |
| 276 | | -** and "zipX". See the robot-zip-leaf and robot-zip-tag settings |
| 277 | | -** for additional controls associated with the "zipX" restriction. |
| 272 | +** also covers /tarball and /sqlar. The special "ziplink" tag covers any |
| 273 | +** page that contains a lot of hyperlinks to a "zip" page. If a tag has |
| 274 | +** an "X" character appended then it only applies if query parameters are |
| 275 | +** such that the page is particularly difficult to compute. In all other |
| 276 | +** case, the tag should exactly match the page name. Useful "X" tags |
| 277 | +** include "timelineX" and "zipX". See the [[robot-zip-leaf]] and |
| 278 | +** [[robot-zip-tag]] settings for additional controls associated with |
| 279 | +** the "zipX" restriction. |
| 278 | 280 | ** |
| 279 | 281 | ** Change this setting "off" to disable all robot restrictions. |
| 280 | 282 | */ |
| 281 | 283 | /* |
| 282 | 284 | ** SETTING: robot-exception width=40 block-text |
| | @@ -299,29 +301,30 @@ |
| 299 | 301 | /* |
| 300 | 302 | ** SETTING: robot-zip-leaf boolean |
| 301 | 303 | ** |
| 302 | 304 | ** If this setting is true, the robots are allowed to download tarballs, |
| 303 | 305 | ** ZIP-archives, and SQL-archives even though "zipX" is found in |
| 304 | | -** the robot-restrict setting as long as the specific check-in being |
| 306 | +** the [[robot-restrict]] setting as long as the specific check-in being |
| 305 | 307 | ** downloaded is a leaf check-in. |
| 306 | 308 | */ |
| 307 | 309 | /* |
| 308 | 310 | ** SETTING: robot-zip-tag width=40 block-text |
| 309 | 311 | ** |
| 310 | 312 | ** If this setting is a list of GLOB patterns matching tags, |
| 311 | 313 | ** then robots are allowed to download tarballs, ZIP-archives, and |
| 312 | | -** SQL-archives even though "zipX" appears in robot-restrict, as long as |
| 314 | +** SQL-archives even though "zipX" appears in [[robot-restrict]], as long as |
| 313 | 315 | ** the specific check-in being downloaded has a tags that matches |
| 314 | 316 | ** the GLOB list of this setting. Recommended value: |
| 315 | 317 | ** "release,robot-access". |
| 316 | 318 | */ |
| 317 | 319 | |
| 318 | 320 | /* |
| 319 | 321 | ** Return the default restriction GLOB |
| 320 | 322 | */ |
| 321 | 323 | const char *robot_restrict_default(void){ |
| 322 | | - return "timelineX,diff,annotate,fileage,file,finfo,reports"; |
| 324 | + return "timelineX,diff,annotate,fileage,file,finfo,reports," |
| 325 | + "tree,hexdump,ziplink"; |
| 323 | 326 | } |
| 324 | 327 | |
| 325 | 328 | /* |
| 326 | 329 | ** Return true if zTag matches one of the tags in the robot-restrict |
| 327 | 330 | ** setting. |
| 328 | 331 | |