Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Windows Tipps & SecurityNighthawk M7 Pro im Test: Flexibler, aber teurer 5G-Router(21.09.2026 um 10:30 Uhr)
Sichere ProgrammierungNeue Gmail-Funktion: So sparst du jetzt Zeit bei Einmalcodes(21.09.2026 um 10:00 Uhr)
Sichere ProgrammierungYour GIF exporter is fine — the container is the problem(21.09.2026 um 10:01 Uhr)
Sichere ProgrammierungCSS, Motion, or GSAP? I Choose by Who Owns the Animation(21.09.2026 um 10:12 Uhr)
Windows Tipps & SecurityNighthawk M7 Pro im Test: Flexibler, aber teurer 5G-Router(21.09.2026 um 10:30 Uhr)
Sichere ProgrammierungNeue Gmail-Funktion: So sparst du jetzt Zeit bei Einmalcodes(21.09.2026 um 10:00 Uhr)
Sichere ProgrammierungYour GIF exporter is fine — the container is the problem(21.09.2026 um 10:01 Uhr)
Sichere ProgrammierungCSS, Motion, or GSAP? I Choose by Who Owns the Animation(21.09.2026 um 10:12 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

I wrote a 403-check quality audit for a static site in ~130 lines of Node — zero dependencies

Static sites rot quietly. You add a page, forget a meta description, break the nav on one file, your JSON-LD stops parsing — and nothing tells you. Lighthouse is great but heavy, needs Chrome, and won't check your site's specific contracts …

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

Static sites rot quietly. You add a page, forget a meta description, break the nav on one file, your JSON-LD stops parsing — and nothing tells you. Lighthouse is great but heavy, needs Chrome, and won't check your site's specific contracts (like "every tool page must link the privacy policy").



So I wrote a single-file audit script: 403 deterministic checks, ~130 lines, zero dependencies, runs in 3 seconds offline. Here's the approach.






The idea: checks as regex + tiny helpers



No headless browser, no HTML parser. For a static site you control, tolerant regex over the raw HTML covers 95% of what matters:




function check(file, name, ok) {
total++;
if (ok) passed++;
else fails.push(`${file}: ${name}`);
}

const title = get(/<title>([^<]*)<\/title>/i, raw);
check(f, 'title 15-65 chars', !!title && title.trim().length >= 15 && title.trim().length <= 65);
check(f, 'canonical', /<link\s+rel="canonical"/i.test(raw));

// a11y: every input needs a label
const inputIds = [...raw.matchAll(/<(?:input|select)[^>]*\bid="([^"]+)"/gi)].map(m => m[1]);
const labelFors = new Set([...raw.matchAll(/<label[^>]*\bfor="([^"]+)"/gi)].map(m => m[1]));
check(f, 'every input has a label', inputIds.every(id => labelFors.has(id)));









Checks that caught real bugs



JSON-LD must parse. I once pasted a schema block after </head>. Valid-looking page, dead structured data:




const ld = [...raw.matchAll(/<script type="application\/ld\+json">([\s\S]*?)<\/script>/gi)];
check(f, 'JSON-LD parses', ld.length > 0 && ld.every(m => { try { JSON.parse(m[1]); return true; } catch { return false; } }));






WCAG contrast from your own palette. Parse :root hex variables, compute relative luminance, assert 4.5:1.



Link-grid consistency. Every page must share the identical nav set, and the homepage must link every tool page. I was maintaining this by hand and missed one — now it's a check.



Thin-content guard. Word-count per page; under 300 words a tool page fails. Ad networks reject thin pages, and so do readers.






The rule that made it work



Every real bug becomes a permanent check, same day. Misplaced schema → structure check. Hand-checked navigation → link-grid check. Slow bloat → 15 KB/page byte budget. The audit grew from 114 to 403 checks while the site stayed at 100%.






Result





Questions about specific checks welcome — happy to paste more in the comments.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten I wrote a 403-check quality audit for a static site in ~130 lines of Node — zero dependencies

Thematisch verwandte Begriffe: wrote, 403check, quality, audit · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-94030 | A security vulnerability has been detected in SerenityOS up to 3d83e4509…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick