Security-Header prüfen

Prüfen Sie, ob eine Website die HTTP-Header sendet, die ihre Besucher schützen, mit Note A–F und Lösung für jeden Header.

A

Note

Ausgezeichnet

https://github.com/ (200)

Ergebnisse

  • Warnung: Keine Permissions-Policy. Damit schalten Sie Browserfunktionen ab, die die Website nicht nutzt (Kamera, Mikrofon, Standort…), zum Beispiel "Permissions-Policy: camera=(), microphone=(), geolocation=()".
  • Warnung: Cookies ohne einige Schutz-Flags: _octo (HttpOnly). Ergänzen Sie Secure (nur HTTPS), HttpOnly (für JavaScript nicht lesbar, bei Session-Cookies) und SameSite=Lax.
  • OK: HSTS ist für 365 Tage aktiv: Browser nutzen nur HTTPS.
  • OK: Die Content-Security-Policy begrenzt, woher Skripte geladen werden dürfen.
  • OK: Die Seite kann nicht von anderen Websites eingebettet werden (Schutz gegen Clickjacking).
  • OK: X-Content-Type-Options: nosniff verhindert, dass Browser Dateitypen erraten.
  • OK: Die Referrer-Policy begrenzt, was an andere Websites gesendet wird.

Security-Header

Strict-Transport-Security max-age=31536000; includeSubdomains; preload
Content-Security-Policy default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com github.githubassets.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net productionresultssa1.blob.core.windows.net productionresultssa2.blob.core.windows.net productionresultssa3.blob.core.windows.net productionresultssa4.blob.core.windows.net productionresultssa5.blob.core.windows.net productionresultssa6.blob.core.windows.net productionresultssa7.blob.core.windows.net productionresultssa8.blob.core.windows.net productionresultssa9.blob.core.windows.net productionresultssa10.blob.core.windows.net productionresultssa11.blob.core.windows.net productionresultssa12.blob.core.windows.net productionresultssa13.blob.core.windows.net productionresultssa14.blob.core.windows.net productionresultssa15.blob.core.windows.net productionresultssa16.blob.core.windows.net productionresultssa17.blob.core.windows.net productionresultssa18.blob.core.windows.net productionresultssa19.blob.core.windows.net productionresultssa30.blob.core.windows.net productionresultssa31.blob.core.windows.net productionresultssa32.blob.core.windows.net github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com wss://*.wps.githubcopilot.com wss://production-copilot-host.webpubsub.azure.com wss://production-copilot-host-centralus.webpubsub.azure.com wss://production-copilot-host-centralus-02.webpubsub.azure.com wss://production-copilot-host-westus.webpubsub.azure.com wss://production-copilot-host-westus3.webpubsub.azure.com wss://production-copilot-host-eastasia.webpubsub.azure.com wss://production-copilot-host-austriaeast.webpubsub.azure.com api.github.com/cmc_internal/api/ edge.fullstory.com rs.fullstory.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com www.youtube-nocookie.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com user-images.githubusercontent.com private-user-images.githubusercontent.com opengraph.githubassets.com repository-images.githubusercontent.com marketplace-screenshots.githubusercontent.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com explore-feed.github.com *.googleusercontent.com objects-origin.githubusercontent.com *.githubusercontent.com images.ctfassets.net/8aevphvgewt8/; manifest-src 'self'; media-src github.com user-images.githubusercontent.com secured-user-images.githubusercontent.com private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com github.githubassets.com assets.ctfassets.net/8aevphvgewt8/ videos.ctfassets.net/8aevphvgewt8/; script-src github.githubassets.com 'sha256-6nkh0w49y4npXaU0CPIq0z+XDtPnpaDFECgj6Y9vmx4='; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
X-Frame-Options deny
X-Content-Type-Options nosniff
Referrer-Policy origin-when-cross-origin, strict-origin-when-cross-origin
Permissions-Policy Fehlt
Alle Response-Header (21)
DateMon, 23 Nov 2026 00:58:24 GMT
Content-Typetext/html; charset=utf-8
VaryX-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With, X-GitHub-Client-Version, Accept-Language, Sec-Fetch-Site,Accept-Encoding, Accept, X-Requested-With
content-languageen-US
ETagW/"6970229ee99b07c8aa02cb7d13a61083"
Cache-Controlmax-age=0, private, must-revalidate
Strict-Transport-Securitymax-age=31536000; includeSubdomains; preload
X-Frame-Optionsdeny
X-Content-Type-Optionsnosniff
X-XSS-Protection0
Referrer-Policyorigin-when-cross-origin, strict-origin-when-cross-origin
Content-Security-Policydefault-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com github.githubassets.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net productionresultssa1.blob.core.windows.net productionresultssa2.blob.core.windows.net productionresultssa3.blob.core.windows.net productionresultssa4.blob.core.windows.net productionresultssa5.blob.core.windows.net productionresultssa6.blob.core.windows.net productionresultssa7.blob.core.windows.net productionresultssa8.blob.core.windows.net productionresultssa9.blob.core.windows.net productionresultssa10.blob.core.windows.net productionresultssa11.blob.core.windows.net productionresultssa12.blob.core.windows.net productionresultssa13.blob.core.windows.net productionresultssa14.blob.core.windows.net productionresultssa15.blob.core.windows.net productionresultssa16.blob.core.windows.net productionresultssa17.blob.core.windows.net productionresultssa18.blob.core.windows.net productionresultssa19.blob.core.windows.net productionresultssa30.blob.core.windows.net productionresultssa31.blob.core.windows.net productionresultssa32.blob.core.windows.net github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com wss://*.wps.githubcopilot.com wss://production-copilot-host.webpubsub.azure.com wss://production-copilot-host-centralus.webpubsub.azure.com wss://production-copilot-host-centralus-02.webpubsub.azure.com wss://production-copilot-host-westus.webpubsub.azure.com wss://production-copilot-host-westus3.webpubsub.azure.com wss://production-copilot-host-eastasia.webpubsub.azure.com wss://production-copilot-host-austriaeast.webpubsub.azure.com api.github.com/cmc_internal/api/ edge.fullstory.com rs.fullstory.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com www.youtube-nocookie.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com user-images.githubusercontent.com private-user-images.githubusercontent.com opengraph.githubassets.com repository-images.githubusercontent.com marketplace-screenshots.githubusercontent.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com explore-feed.github.com *.googleusercontent.com objects-origin.githubusercontent.com *.githubusercontent.com images.ctfassets.net/8aevphvgewt8/; manifest-src 'self'; media-src github.com user-images.githubusercontent.com secured-user-images.githubusercontent.com private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com github.githubassets.com assets.ctfassets.net/8aevphvgewt8/ videos.ctfassets.net/8aevphvgewt8/; script-src github.githubassets.com 'sha256-6nkh0w49y4npXaU0CPIq0z+XDtPnpaDFECgj6Y9vmx4='; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
Servergithub.com
Accept-Rangesbytes
Set-Cookie_gh_sess=sJWyu8GD8edzf5Gi%2BsytVq3WHO8wRn79hpg497GPx2dc596N7cqOhfovnyOjeh3GDeEjTzJI%2BUfsl7OndTQQs6orcEibWSlN25PdS%2By2mTvgyYLc9ectYD6gCs0EIAvAQyo0x8LgTt6aIEYVEmDdpEmn7BsUvOMdolZcyoU00jxeHAnrBPfJ62M75QdI36P%2Fbjd%2FYFgyG6x7upf0QJAraHLKZUuyE3zwR5csoRSrtQjkZnIr%2BMZyiueDHxyUGiuFnBGH2tNlEBPH2EQ3lD%2FSvA%3D%3D--VVjmA12uCzzDq7%2Bd--rkhEQFsQ5Lj7bJe0aL%2BMGA%3D%3D; path=/; HttpOnly; secure; SameSite=Lax
Set-Cookie_octo=GH1.1.2033055833.1795395504; expires=Tue, 23 Nov 2027 00:58:24 GMT; domain=.github.com; path=/; secure; SameSite=Lax
Set-Cookielogged_in=no; expires=Tue, 23 Nov 2027 00:58:24 GMT; domain=.github.com; path=/; HttpOnly; secure; SameSite=Lax
X-GitHub-Request-Id81BA:2C5698:7AE847:15C6D9D:6B038FB0
x-github-edge-regionswitzerlandnorth
connectionclose
Transfer-Encodingchunked

Geprüft am 2026-11-23 00:58 UTC. Ergebnisse werden 5 Minuten zwischengespeichert.

Was macht der Security-Header-Check?

Er lädt eine Seite wie ein Browser, folgt ihren Weiterleitungen und prüft die HTTP-Header, die Schutzfunktionen des Browsers einschalten. Jeder Header bekommt eine Bewertung, die Website eine Note von A bis F, und jedes Problem kommt mit der Zeile, die Sie hinzufügen müssen.

Die geprüften Header

HeaderSchützt vorEmpfohlener Wert
Strict-Transport-SecurityHerabstufung auf HTTP und Abfangen in öffentlichen WLANs.max-age=31536000; includeSubDomains
Content-Security-PolicyCross-Site-Scripting (XSS) und eingeschleuste Inhalte.Hängt von der Website ab; beginnen Sie mit default-src 'self' im Report-only-Modus.
X-Frame-OptionsClickjacking (Ihre Seite in einem unsichtbaren Frame).SAMEORIGIN oder frame-ancestors 'self' in der CSP.
X-Content-Type-OptionsDateien, die als Skript laufen, weil der Browser ihren Typ erraten hat.nosniff
Referrer-PolicyWeitergabe vollständiger URLs (Tokens, Suchbegriffe) an andere Websites.strict-origin-when-cross-origin
Permissions-PolicyMissbrauch von Kamera, Mikrofon, Standort… durch eingebetteten Code.camera=(), microphone=(), geolocation=()

Wir markieren auch Header, die Softwareversionen verraten (Server: Apache/2.4.58, X-Powered-By), und Cookies ohne Secure, HttpOnly oder SameSite.

So fügen Sie sie hinzu

# Nginx (im server-Block für HTTPS)
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;

# Apache (.htaccess, braucht mod_headers)
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
Header always set X-Frame-Options "SAMEORIGIN"
Header always set X-Content-Type-Options "nosniff"
Header always set Referrer-Policy "strict-origin-when-cross-origin"

Hinter Cloudflare können Sie sie auch mit einer Transform Rule setzen (Rules → Transform Rules → Modify Response Header) und HSTS direkt unter SSL/TLS → Edge Certificates.

Bevor Sie HSTS aktivieren

Hat ein Browser HSTS einmal gesehen, verweigert er unverschlüsseltes HTTP für diese Domain, bis max-age abläuft. Stellen Sie zuerst sicher, dass die Website und, mit includeSubDomains, jede Subdomain über HTTPS mit gültigem Zertifikat funktionieren. Prüfen Sie es mit dem SSL Checker und die Weiterleitungen mit Weiterleitungen prüfen.

Häufige Fragen

Was sind Security-Header?

HTTP-Response-Header, die Browser anweisen, Schutzfunktionen einzuschalten: nur HTTPS verwenden (HSTS), Skripte nur aus vertrauenswürdigen Quellen laden (CSP), sich nicht von anderen Seiten einbetten lassen (X-Frame-Options), Dateitypen nicht erraten (nosniff) und begrenzen, was mit anderen Seiten geteilt wird (Referrer-Policy).

Wie wird die Note berechnet?

Jeder fehlende oder schwache Header zieht Punkte von 100 ab, nach Wichtigkeit: kein HTTPS 60, kein HSTS 25, kein CSP 20, kein Clickjacking-Schutz 15, nosniff und Referrer-Policy je 10, kleinere Probleme 5. Ab 90 gibt es ein A, ab 75 ein B, ab 60 ein C, ab 40 ein D.

Wie füge ich diese Header hinzu?

In Ihrem Webserver (Nginx add_header, Apache Header set), in Ihrer Anwendung oder bei Ihrem CDN (Cloudflare Transform Rules, Konfigurationsdateien von Netlify und Vercel). Fügen Sie sie bei HTTPS-Antworten hinzu und testen Sie danach mit diesem Tool.

Warum ist eine Content-Security-Policy schwierig?

Sie muss jede Quelle auflisten, aus der Ihre Seiten Skripte, Styles, Schriften und Frames laden, einschließlich Analytics und Werbung. Beginnen Sie mit Content-Security-Policy-Report-Only, um zu sehen, was kaputtginge, korrigieren Sie die Liste und erzwingen Sie sie dann.

Braucht man X-XSS-Protection noch?

Nein. Moderne Browser haben den XSS-Filter entfernt, den er steuerte, und ihn einzuschalten konnte sogar Probleme verursachen. Nutzen Sie stattdessen eine Content-Security-Policy und lassen Sie X-XSS-Protection weg (oder setzen Sie ihn auf 0).

Bedeutet eine gute Note, dass die Seite sicher ist?

Nein. Header sind eine Schicht: Sie begrenzen den Schaden mancher Angriffe im Browser. Die Seite braucht trotzdem aktuelle Software, ein gültiges Zertifikat (prüfen Sie es mit dem SSL Checker) und sicheren Code.

Verwandte Tools

Zuletzt aktualisiert: