Skip to content

feat(tech-detect): Bolt and WordPress caching, SEO and image plugins and managed hosts - #1303

Closed
nc9 wants to merge 3 commits into
mainfrom
feat/tech-detect-bolt-wordpress-1278-1033
Closed

nc9 wants to merge 3 commits into
mainfrom
feat/tech-detect-bolt-wordpress-1278-1033

Conversation

@nc9

@nc9 nc9 commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #1278
Fixes #1033

What changed

  • Bolt (tech-detect: no fingerprint for the Bolt (bolt.new) app builder; 51 *.bolt.host sites in a 38k batch went unattributed #1278): new bolt-new fingerprint (name "Bolt", category cms, beside lovable and base44). It matches the page host *.bolt.host (anchored at the URL start, so look-alike hosts and pages that link to a bolt.host app do not match) and, for custom domains, the "Made in Bolt" badge: an <a> whose href is the https://bolt.new/?rid=<id> referral URL. bolt-payments (bolt.com checkout) and bolt-new do not cross-match; a test pins a checkout page and a bolt.host app.
  • WordPress (tech-detect: fingerprint WordPress caching, SEO and image plugins, and managed WordPress hosts #1033): 21 fingerprints in packages/tech-detect/src/fingerprints/wordpress.ts.
    • Caching (category cache): WP Rocket, LiteSpeed Cache, W3 Total Cache, WP Super Cache, WP Fastest Cache, Autoptimize, Perfmatters.
    • SEO (seo): Yoast SEO, Rank Math, All in One SEO, SEOPress.
    • Images (images): ShortPixel, Imagify, EWWW Image Optimizer, Smush.
    • Managed hosts (hosting): WP Engine, Kinsta, Pressable, WordPress VIP, SiteGround, Cloudways.
    • A plugin is detected from an asset URL under wp-content/plugins/<slug>/ (or the cache directory it fills) on a script, link, img or source tag, from the HTML comment it writes (opened at <!--), or from its own JSON-LD class. Never from its name in page text, a link or a <pre> sample. Hosts are detected from response headers, listed first, so detectedBy reads header:<name>. Versions come from the Yoast, LiteSpeed Cache and All in One SEO comments and the W3 Total Cache header.
  • The detector helpers (scriptSrc, resourceAttr, inScript, inStyle, inBundle) moved from other.ts to fingerprints/helpers.ts unchanged so both files share them.
  • Three new technology categories, cache, seo and images, added to TechCategory, core-contracts TechnologyCategory and the report's group order, label and emoji tables (Caching & Performance, SEO Plugins, Image Optimization), because the issue asks for those categories.

New icon slugs (private repo needs a PNG in apps/web/public/tech-icons before the gitlink bump, or tech-icons-consistency fails; I did not create any logo)

bolt-new, wp-rocket, w3-total-cache, wp-super-cache, wp-fastest-cache, autoptimize, perfmatters, yoast-seo, rank-math, all-in-one-seo, seopress, shortpixel, imagify, ewww-image-optimizer, smush, wp-engine, kinsta, pressable, wordpress-vip, siteground, cloudways (21 new). litespeed-cache reuses the existing litespeed slug.

Heads-up for the private repo

The new categories reach the dashboard (apps/dashboard/src/components/dashboard/technologies/*, pages/technologies.tsx keep their own category label tables), so check they fall back sensibly for cache, seo and images at the gitlink bump.

Honest limits

  • Signals are from the issue and from my knowledge of each product, not from a live site per product. The weakest are Pressable, WordPress VIP, SiteGround (medium) and Cloudways (low), whose headers are the least documented; SEOPress, Imagify, Smush, EWWW, Perfmatters and Autoptimize are detected by asset path only (no comment or header). The Bolt badge detector is the least verified of the Bolt signals.
  • The docs signature count was 392 but the real count on main was 393; it is now 415.

Tests

  • packages/tech-detect/tests/wordpress-fingerprints-1033.test.ts (41): each plugin from its asset URL and its own comment or schema block, each host from its header with detectedBy, a plain WordPress page matching none of them, a blog post naming all of them with the markup in <pre> matching none, an <a href> or prose path not matching, look-alike headers, versions, and the Bolt cases (host, badge, look-alikes, no cross-match with bolt-payments).
  • Passing: that file, fingerprints, vibe-coding-fingerprints, bundle-content-1254, untrusted-meta, pattern-bounds (bounded patterns), tsgo on tech-detect, core-contracts and report, make validate in docs/, test-suites.ts --check.
  • Not run: the whole --run rest suite, a real-site smoke test of any fingerprint. Local Bun is not the pinned 1.4.4.

Docs: docs/cloud/technologies.mdx. Skill: none.

Review round 1 (head 7c00862)

  • HIGH: x-kinsta-cache and x-sg-cache were not in TECH_DETECT_HEADER_NAMES / TECH_DETECT_PRESENCE_HEADERS, so the crawler dropped them and those host fingerprints were dead in a real audit (unit tests feed headers directly). Added to both; tech-detect-header-names-871 now passes, and a new end-to-end audit test (apps/cli/tests/audit/tech-detect-wp-hosts-1033.test.ts) serves those headers and the WP Rocket comment and fails without the allow-list change.
  • Bolt: the ?rid= badge now needs badge context (an <img> or <svg> inside the anchor, or the words "Made in Bolt"); a plain referral link in a post no longer matches (tested both ways).
  • litespeed-cache is no longer detected from the x-litespeed-cache header (any LiteSpeed-cached app sends it); the comment and plugin assets remain. SiteGround is no longer detected from the sg-cachepress plugin path (it survives a migration); the x-sg-cache header and the server token remain.
  • scripts/generate-tech-fingerprints.ts accepts the cache, seo and images categories; the WordPress section in docs/cloud/technologies.mdx now sits after the category table.
  • tech-detect: no fingerprint for the Bolt (bolt.new) app builder; 51 *.bolt.host sites in a 38k batch went unattributed #1278 AC "an icon is added": icons live in the PRIVATE repo, so this PR cannot add them. The 21 slugs needing PNGs in apps/web/public/tech-icons (none invented) are: bolt-new, wp-rocket, w3-total-cache, wp-super-cache, wp-fastest-cache, autoptimize, perfmatters, yoast-seo, rank-math, all-in-one-seo, seopress, shortpixel, imagify, ewww-image-optimizer, smush, wp-engine, kinsta, pressable, wordpress-vip, siteground, cloudways. A private issue tracks them.

…adge context for Bolt, drop weak litespeed and siteground signals #1033 #1278

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9

nc9 commented Oct 30, 2026

Copy link
Copy Markdown
Contributor Author

Landed in v0.0.143 as 367dd147 2914679b 9a233683 via #1341. Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.143. Closing this original.

nik

@nc9 nc9 closed this Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant