Skip to content

Custom request headers support (enable Shopify Web Bot Auth signature headers so the crawler isn't blocked) #25

Closed

Description

@KikoTs

Summary

Add support for custom HTTP request headers so users can attach arbitrary headers (name/value pairs) to every request the crawler makes during an audit.

The immediate motivation is Shopify's Web Bot Auth, which lets merchants authorize their own crawlers/tools so they aren't blocked or throttled. To use it, the audit tool must send three signed headers on each request. Today there's no way to inject these, so SquirrelScan gets blocked when auditing protected Shopify stores.

Motivation: Shopify Web Bot Auth

Shopify now uses Web Bot Auth + HTTP Message Signatures to authorize first/third-party tools (SEO/accessibility audits, automated testing, data analysis) so they can access a public storefront without being blocked. Merchants generate a signature in the Shopify admin (with custom name + expiry) and copy it into their tool.

Per Shopify's Crawling your store docs, each signature is 3 HTTP headers that must be added to every request:

Header name Header value
Signature-Input The signature input value (copied from Shopify admin)
Signature The signature value (copied from Shopify admin)
Signature-Agent A quoted URI of the signing agent — for Shopify use "https://shopify.com"

This is the IETF Web Bot Auth draft (the same Message Signatures standard now used by Cloudflare's Verified Bots program), so the feature is useful well beyond Shopify.

Proposed solution

Allow passing custom headers that are applied to all crawl requests. A few complementary surfaces:

  1. CLI flag — repeatable, e.g.

    squirrelscan https://store.example.com \
      --header 'Signature-Input: ...' \
      --header 'Signature: ...' \
      --header 'Signature-Agent: "https://shopify.com"'
    

    (-H as a short alias would match curl conventions.)

  2. Config file / env — a headers map so the (potentially sensitive, expiring) signature values aren't baked into shell history, and can be reused across runs / in CI.

  3. MCP + agent skill — expose the same custom-headers option through the MCP tool and the audit-website skill so agent workflows can audit protected Shopify stores too.

Notes / considerations

  • Signature-Agent value is quoted ("https://shopify.com") — make sure quoting survives parsing.
  • Headers should apply to every request the crawler issues (pages, assets, robots/sitemap fetches), since Shopify validates each request at the edge.
  • Treat header values as secrets in logs/output (signatures expire and are scoped to a store).
  • A documented Shopify recipe in the docs would help, since the 3-header shape is fixed.

References

Activity

  1. self-assigned this
    on Jun 23, 2026
  2. added theissue type on Jun 23, 2026
  3. nc9 commented on Jun 23, 2026

    @nc9
    Contributor

    Good suggestion - i'll add support in the config and web interface as well and include this in the next release

  4. nc9 commented on Jun 28, 2026

    @nc9
    Contributor
  5. nc9 commented on Jul 13, 2026

    @nc9
    Contributor

    Custom headers shipped in v0.0.60: a repeatable --header / -H flag on squirrel audit, plus a persistent [crawler] headers map in squirrel.toml. Headers are attached to every crawl request, CLI flags merge over the TOML map, and values are redacted from output and logs (names only in the preamble). Built with exactly this Web Bot Auth case in mind.

    Docs: https://docs.squirrelscan.com/configuration/crawler#headers

    Closing this out. Reopen if the Shopify signature flow still gets you blocked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions