Repository navigation
docs: cloud crawl scope, include/exclude patterns and authorised crawls (#348) - #351
Conversation
…crawls Closes #348. New page at dashboard/crawl-settings covering the Website > Settings > Crawl page: the crawl scope choice (follow links / sitemap only), the include and exclude patterns, the robots.txt toggle, and the authorised crawl profile. The patterns and the profile shipped in squirrelscan/repo#2108 and #2113 with no docs at all. The scope choice is squirrelscan/repo#2109. Says plainly that an authorised crawl does not apply robots.txt at all, and that an exclude pattern is the replacement for a Disallow. Also corrects the pattern syntax in configuration/crawler: the docs described a glob dialect the crawler does not implement. matchesPattern treats `*` as the only special character, standing for any run of characters including `/`; `?` and `[abc]` are escaped and match themselves. A pattern is tested against the URL's path unless it starts with a scheme, so the documented `*?preview=*` examples could never match and are now absolute. Claude-Session: https://claude.ai/code/session_0174D96WamG9ZhJxRudpeniA Signed-off-by: Nik Cubrilovic <[email protected]>
The page claimed a sitemap-scoped crawl still queues pages carrying findings open from the last audit. squirrelscan/repo#2132 stopped doing that: those seeds are enqueued ahead of the sitemap and win the frontier dedup, so an off-sitemap page spent the capped budget before the URLs the customer asked for. Cached-page reuse is off under the same scope and for the same reason. Reusing a page means re-reading its links, and the crawler enqueues them with no discovery check, so one reused page puts the whole site back in the frontier. That one is tracked as #354. Both are now under a "What sitemap scope gives up" heading, since a reader weighing the setting needs the cost and not only the benefit. The sample event log carries the reuse sentence the run actually posts, and the empty-sitemap fallback moved back above the trade-offs so the section reads in the order the crawl happens. Also notes that an authorised crawl never reuses pages either, because an authenticated response must not be stored where another audit could read it. Claude-Session: https://claude.ai/code/session_0174D96WamG9ZhJxRudpeniA Signed-off-by: Nik Cubrilovic <[email protected]>
|
Updated in c94d7c0 for a behaviour change that landed after this PR was opened. squirrelscan/repo#2132's acceptance pass found that
Both now sit under a "What sitemap scope gives up" heading, because someone weighing the setting needs the cost and not only the benefit. The sample event log carries the reuse sentence the run actually posts, and the empty-sitemap fallback moved back above the trade-offs so the section reads in the order the crawl happens. Also added: an authorised crawl never reuses pages either, because an authenticated response must not be stored where another audit could read it. One claim I removed rather than corrected. An earlier draft tied reuse to the dashboard's Incremental crawl toggle. Checking the source, that toggle is stored in the Durable Object and never read on any run path, so reuse is decided entirely by the container's environment and the run's shape. Filed as squirrelscan/repo#2136. The page now describes what the crawl does and does not mention the toggle.
|
Closes #348.
Documents the cloud crawl settings, which had no docs page at all, and corrects the include/exclude pattern syntax that the existing config reference got wrong.
New page:
dashboard/crawl-settingsCovers the four cards on Website → Settings → Crawl:
discover/sitemap, from squirrelscan/repo#2109, with the empty-sitemap fallback and the run notice it posts.Crawl-delayis capped at 2 seconds and what that costs a large crawl.Disallow.Correction to
configuration/crawlerThe
include/excludereference described a glob dialect the crawler does not implement.matchesPatterntreats*as the only special character, standing for any run of characters including/, and escapes everything else, so?and[abc]match themselves. A pattern is tested against the URL's path unless it starts withhttp://orhttps://.Three things followed from that:
*?preview=*examples could never match, because a path has no query string. They are absolute now./blog/*was documented as not matching/blog/post/comment. It does: a/*suffix is a prefix test./api/*/userswas documented as not matching/api/v1/v2/users. It does, for the same reason.Also adds two cross-reference notes: from
includeto the dashboard lists, and fromheadersto authorised crawls.Verification
Every claim on the new page was checked against the implementation, and a second adversarial pass over it found nine factual errors that are fixed in this branch. The ones worth calling out, because they are the non-obvious product behaviour:
429, or503with aRetry-After. A bare503is an outage.make validatepasses indocs/.Notes
add_websitetool set a site's crawl scope at registration.configuration/crawlerdocumentsallow_query_paramsdefault as "drop all query params", but an empty list drops only known tracking prefixes and keeps the rest.https://claude.ai/code/session_0174D96WamG9ZhJxRudpeniA