Skip to content

squirrel audit --offline: hold the crawl's own redirects and off-site sitemaps to the audited site #819

Closed

Description

@nc9

squirrel audit --offline no longer status-checks third-party scripts, stylesheets, fonts or sitemap URLs on another host (#807, PR #816). The crawl's own requests can still reach another host when the audited site sends them there:

  • a page redirect the crawler follows to another host;
  • a sitemap file that robots.txt (or a sitemap index) lists on another host, which sitemap discovery fetches (without the audit's custom headers);
  • a first-party asset (stylesheet, script, image, font, PDF) whose URL redirects to another host, followed by the asset checks;
  • the opt-in cloaking probe, if it follows a redirect off the site;
  • the soft-404 confirmation re-fetch, which follows a redirect to any host (header handling across that redirect: soft-404 confirmation re-fetch can send custom request headers across a redirect to another origin #820).

Separately, --offline uses two ideas of "own site": sitemap URLs count the www/apex twin and project.domains as the site's own, asset references do not.

The docs and help text now say this plainly instead of promising zero off-site requests. This issue is to decide whether --offline should hold these hops to the audited site and its subdomains as well, and to do it if so.

Acceptance Criteria

  • Under --offline, a page that redirects to another host is recorded as a redirect off the site and the other host receives no request.
  • Under --offline, a robots.txt Sitemap: line or sitemap index entry on another host is not fetched, and the report says the sitemap was skipped rather than missing.
  • Under --offline, a first-party asset that redirects to another host is not followed there, and reliability/broken-resources reports it as not measured rather than passing or failing it.
  • Under --offline, the cloaking probe (when enabled) sends nothing to another host.
  • Under --offline, the soft-404 confirmation re-fetch sends nothing to another host.
  • Under --offline, an asset on the www/apex twin or a project.domains host is checked like the site's own, matching how sitemap URLs are treated.
  • A test proves each case with a local server and a second host, asserting by Host header that the second host gets no request.
  • docs/cli/audit.mdx and the --offline help text are updated to match what ships.

Activity

  1. added
    bug
    P3
    size: M
    security
    on Oct 15, 2026
  2. nc9 commented on Oct 15, 2026

    @nc9
    ContributorAuthor

    Two more for this issue, from the #816 review:

    • The soft-404 confirmation re-fetch follows a redirect to any host (native redirect: "follow"), so under --offline it can reach another host too. Its header handling across that redirect is tracked separately in soft-404 confirmation re-fetch can send custom request headers across a redirect to another origin #820.
    • --offline uses two ideas of "own site". Sitemap URLs use the audited host, its subdomains, the www/apex pair and project.domains. Asset references use the base host and its subdomains only. So under --offline, an apex stylesheet on a www site, or a script on a project.domains host, is skipped and reported as "third-party resources were not measured", while a sitemap URL on the same host is still checked. One definition for both would close that gap.

    Added acceptance criteria:

    • Under --offline, the soft-404 confirmation re-fetch sends nothing to another host.
    • Under --offline, an asset on the www/apex twin or a project.domains host is checked like the site's own, matching how sitemap URLs are treated.
  3. removed
    P3
    on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsecuritysize: M

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions