Detecting a website's tech stack from one HTML fetch: what 194 fingerprints can and can't see
Disclosure: this article was written with the help of AI. The code snippets are simplified illustrations of the approach, not AiTech's production engine. It is posted by the team at AiTech. "What is this website built w
Disclosure: this article was written with the help of AI. The code snippets are simplified illustrations of the approach, not AiTech's production engine. It is posted by the team at AiTech.
"What is this website built with?" sounds like a hard problem, but a surprising amount of the answer is sitting in the first HTML response. AiTech built a small checker, BuiltOnWhat, around 194 hand-written fingerprints. This article explains the approach, the structure of a fingerprint, and, just as importantly, what one fetch cannot tell you.
What one request already reveals
Fetch a homepage once and you get four kinds of signal:
-
Response headers.
server,x-powered-by,x-shopid(Shopify),x-generator, CDN headers such ascf-ray, andset-cookienames. -
Cookies. A cookie called
wordpress_test_cookieor_shopify_sis hard to explain any other way. -
Markup.
<meta name="generator">tags, inline comments, framework root elements such as<div id="__next">. -
Asset URLs.
/wp-content/,cdn.shopify.com,_next/static,/_astro/, analytics script hosts.
None of these needs a browser. Everything is in the response you already have, so detection is a pure function from "headers + HTML" to "list of technologies."
What a fingerprint looks like
Keep fingerprints as data, not code, so adding one takes a minute and cannot crash the engine. (This is a simplified format for the article.)
const fingerprints = [
{
name: 'WordPress',
category: 'CMS',
rules: [
{ in: 'html', match: /\/wp-content\/(themes|plugins)\//i, weight: 0.6 },
{ in: 'meta', name: 'generator', match: /^WordPress/i, weight: 0.8 },
{ in: 'header', name: 'link', match: /rel="https:\/\/api\.w\.org\/"/i, weight: 0.7 },
],
},
];
Each rule says where to look, what to match, and how much that match should count. A rule hit records the evidence string it matched, so the output is never just "WordPress: yes" but "WordPress, because /wp-content/themes/twentytwentyfour/ appears in the HTML."
Confidence and evidence
A single weak signal should not be reported as fact. Combine the weights of the rules that hit, cap at 1, and map to a label:
function score(fp, ctx) {
const hits = fp.rules.map((r) => test(r, ctx)).filter(Boolean);
if (!hits.length) return null;
const confidence = Math.min(1, hits.reduce((sum, h) => sum + h.weight, 0));
return { name: fp.name, confidence, evidence: hits.map((h) => h.evidence) };
}
Two rules that agree make a good detection; one asset path alone is a "possible." Showing the evidence next to every result lets users judge false positives themselves, which is far better than pretending the engine is infallible.
Being a polite crawler
If a tool fetches other people's sites, a few habits keep it welcome:
- Identify yourself with a clear user-agent and a page that explains who runs the bot.
- Read
robots.txtand skip sites that ask automated tools not to read their homepage. - Fetch the homepage once, cap the body size, set a short timeout, and do not follow chains of redirects endlessly.
- Do not store the pages you fetch if you do not need them.
BuiltOnWhat does this: it identifies as AiTechBot, honours robots.txt, caps the body at 400 KB, and does not keep the address or the results of a free lookup.
What a single fetch cannot see
Be upfront about the limits:
- Client-rendered sites. If the HTML is an empty shell and everything is built by JavaScript after load, most of the stack is invisible without running a browser.
- Server-only tools. A backend language, a database or a queue that leaves no trace in headers or markup cannot be detected.
- Homepage only. A checkout on a subdomain or a separate marketing site can use entirely different tools.
- Obfuscation. Sites that strip generator tags and rename asset paths will look blank.
On 27 November 2026 AiTech ran the engine over 5,000 domains from the Tranco list; 2,746 of them could be analysed, and 108 were skipped because of robots.txt. A "detected nothing" result is not proof of absence.
Try it
The checker is free for 10 lookups a day without an account: builtonwhat.pages.dev. Reports of wrong or missing detections are welcome.
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.