Skip to content

tech-detect: hosting signatures written as host suffixes match third-party URLs in the page HTML #1449

Closed

Description

@nc9

Found while fixing #1448. The url-path detector type matches the page URL and then its whole HTML. For a hosting-platform signature written as a host suffix, a third-party script or link on that suffix anywhere in the HTML reads as the site being hosted there. #1448 was Firebase Hosting on a Shopify store that loads an app's script from *.web.app; the same pattern shape is in these signatures:

  • surge-sh: \.surge\.sh
  • railway-app: \.up\.railway\.app|\.railway\.app
  • aws-amplify-hosting: \.amplifyapp\.com
  • one \.ac-page\.com signature in generated.ts

#1448 adds a url-host detector type (the page's own host name only) and moves firebase-hosting to it.

Acceptance Criteria

  • Each signature above matches the page's own host (or a platform-specific response header where one exists), not a URL in the HTML
  • A page on an unrelated host that loads a script from each suffix does not report that platform, one fixture per signature
  • A page on each platform's own host is still detected
  • The corpus check (squirrelscan-53 label) shows no loss of true detections for the four signatures

Activity

  1. added
    bug
    size: S
    on Oct 31, 2026
  2. added theissue type on Oct 31, 2026
  3. nc9 commented on Nov 1, 2026

    @nc9
    ContributorAuthor

    Corpus figures for criterion 4, 10-shard sample (5,877 sites), v0.0.154 to v0.0.155: railway-app 80 to 68 (-12), aws-amplify-hosting 1 to 0, surge-sh 2 to 2, activecampaign 1 to 1 (ac-page is one of its detectors); no gains. 5 of the 12 railway losses were probed: all serve from their own domain with Server=cloudflare and no Railway header, with railway.app only in page HTML (1 to 10 times) and in 0 script URLs. The other 7 railway losses and the amplify loss were not probed. So no true detection is shown lost, but the criterion (no loss of true detections) is not fully evidenced. Leaving this open until the remaining 7 railway losses and the amplify one are probed.

    nik

  4. nc9 commented on Nov 1, 2026

    @nc9
    ContributorAuthor

    Checked against v0.0.155. Ticked: criteria 1 (each signature reads the page's own host, with the Server: Surge and Server: railway headers kept), 2 (a page that only loads a script from each suffix is not reported, one fixture per signature) and 3 (a page on each platform's own host is still detected). Open: criterion 4, the corpus check for lost true detections: there are no corpus numbers on this issue. Leaving this open until they are posted.

    nik

  5. nc9 commented on Nov 1, 2026

    @nc9
    ContributorAuthor

    Corpus figures, follow-up to the earlier comment: all 12 Railway losses and the 1 Amplify loss from the 10-shard v0.0.154 to v0.0.155 sample were probed. All 13 serve from their own domain with no platform header (Server header on the 12 Railway sites: Cloudflare 7, Vercel 3, Netlify 1, none 1; the Amplify site: none). The suffix appears in 0 script URLs on all 13. railway.app is in the home-page HTML for 7 and only on other crawled pages for 5; amplifyapp.com appears once in home-page HTML. 0 true losses: every loss was a mention of a platform host in links or text, never a page hosted there. Criteria 1 to 3 were ticked earlier; criterion 4 now holds, so every criterion is met. Closing as completed.

    nik

  6. nc9 commented on Nov 1, 2026

    @nc9
    ContributorAuthor

    Full-corpus figures, v0.0.156 tag against v0.0.154, 34,968 sites: railway-app 388 to 304 (-84), surge-sh 10 to 4 (-6), aws-amplify-hosting 3 to 1 (-2), no gains. The 13 sample losses were all probed earlier (mentions only); the extra full-corpus losses were not probed.

    nik

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

    bugsize: S

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions