Repository navigation
Description
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:
-
CLI flag — repeatable, e.g.
squirrelscan https://store.example.com \ --header 'Signature-Input: ...' \ --header 'Signature: ...' \ --header 'Signature-Agent: "https://shopify.com"'(
-Has a short alias would matchcurlconventions.) -
Config file / env — a
headersmap so the (potentially sensitive, expiring) signature values aren't baked into shell history, and can be reused across runs / in CI. -
MCP + agent skill — expose the same custom-headers option through the MCP tool and the
audit-websiteskill so agent workflows can audit protected Shopify stores too.
Notes / considerations
Signature-Agentvalue 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
- Shopify — Crawling your store: https://help.shopify.com/en/manual/promoting-marketing/seo/crawling-your-store
- Shopify changelog — Authorize custom crawlers and tools with Web Bot Auth: https://changelog.shopify.com/posts/authorize-custom-crawlers-and-tools-with-new-crawler-access-keys
- Cloudflare — Message Signatures / Verified Bots: https://blog.cloudflare.com/verified-bots-with-cryptography
Activity
nc9 commentedon Jun 23, 2026
Good suggestion - i'll add support in the config and web interface as well and include this in the next release
nc9 commentedon Jun 28, 2026
this is in 0.0.60 give it a go
https://squirrelscan.com/releases/0.0.60
nc9 commentedon Jul 13, 2026
Custom headers shipped in v0.0.60: a repeatable
--header/-Hflag onsquirrel audit, plus a persistent[crawler] headersmap insquirrel.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.