Skip to content

fix(tech-detect): surge, railway, amplify and ac-page hosting signatures read the page's own host #1449 - #1468

Closed
nc9 wants to merge 2 commits into
mainfrom
fix/tech-hosting-suffix-1449
Closed

nc9 wants to merge 2 commits into
mainfrom
fix/tech-hosting-suffix-1449

Conversation

@nc9

@nc9 nc9 commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1449. Same class as #1448 (merged): a host-suffix hosting signature matched the suffix anywhere in the page HTML, so a page that loads a third-party script from the suffix read as hosted on that platform.

Change

In generated.ts (hand edit: the generated file's source data is not in the repo), the url-path detector of four signatures becomes url-host, anchored to the page's own host name, a trailing dot allowed:

  • surge-sh: (^|.)surge.sh; the Server: Surge header signal stays.
  • railway-app: (^|.)railway.app (covers up.railway.app); the Server: railway header signal stays.
  • aws-amplify-hosting: (^|.)amplifyapp.com.
  • activecampaign: (^|.)ac-page.com (ActiveCampaign Pages); its other signals are unchanged.

Tests

hosting-suffix-1449.test.ts (14), per platform: a page on its own domain that loads a script from, links to or names the suffix is not detected; hosts that only contain the suffix (evil-surge.sh, surge.sh.example.net, x.surge.sh.example.com) are not; the platform's own host is, with a trailing dot too; the Surge and Railway header signals still detect on any host. All tech-detect suites pass; tsgo clean.

Not run: the corpus check (53) for lost true detections; it is for after release. A site that mentions one of these hosts only in its HTML and is not on the platform stops being reported, which is the intended removal.

Docs: cloud/technologies.mdx names every platform read from the page's own host (Firebase, Surge, Railway, Amplify, ActiveCampaign Pages) and says Amplify and ActiveCampaign Pages have no header signal, so a custom domain behind either is no longer detected as hosted there (recall loss, intended; only Surge and Railway keep their Server header signals). CHANGELOG bullet. Rebased on main v0.0.153. Skill change: none.

nik

nc9 added 2 commits November 1, 2026 13:02
…res read the page's own host #1449

Signed-off-by: Nik Cubrilovic <[email protected]>
…read from the page's own host #1449

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9
nc9 force-pushed the fix/tech-hosting-suffix-1449 branch from e3c8282 to e9c7218 Compare November 1, 2026 02:03
@nc9 nc9 mentioned this pull request Nov 1, 2026
@nc9

nc9 commented Nov 1, 2026

Copy link
Copy Markdown
Contributor Author

Landed in v0.0.155 as e1068ab8, 4dff5e31 via #1503.

nik

@nc9 nc9 closed this Nov 1, 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

Development

Successfully merging this pull request may close these issues.

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

1 participant