HTTP Header Checker & Security Analyzer
Inspect and analyze HTTP response headers, verify CORS policies, test redirects, check SSL/HSTS configuration, and audit security headers in real-time.
URL: https://www.nexuscalculator.net, Method: HEADReady locally via WebAssembly & JavaScript
Content-Type: text/html; charset=utf-8 Strict-Transport-Security: max-age=63072000; includeSubDomains; preload Content-Security-Policy: default-src 'self' ... X-Frame-Options: DENY X-Content-Type-Options: nosniff Referrer-Policy: strict-origin-when-cross-origin100% Client-Side • Zero Server Upload
Every HTTP exchange starts with a status line and a block of colon-delimited header fields governed by RFC 9110 (HTTP Semantics). Those response headers dictate browser security boundaries, TLS downgrade protection, cross-origin script access, CDN caching efficiency, and search engine indexing behavior—often overriding HTML <meta> tags inside the document body. Because browser fetch() APIs mask Set-Cookie headers and strip non-safelisted cross-origin fields under CORS rules, inspecting a remote endpoint faithfully requires a live server-side HTTP probe that captures each redirect hop and raw header line intact.
Security Header Hardening and Scoring Benchmarks
Modern browsers ship powerful exploit-mitigation engines that remain dormant unless an origin opts in through explicit response headers. Auditing these directives catches misconfigurations such as permissive 'unsafe-inline' CSP fallbacks or leaky Server and X-Powered-By banners that advertise exact software versions to automated scanners.
| Response Header | Spec / Standard | Recommended Production Baseline | Primary Threat Mitigated |
|---|---|---|---|
Content-Security-Policy | W3C CSP Level 3 | default-src 'self'; script-src 'self' 'nonce-{rand}'; object-src 'none'; frame-ancestors 'none' | Cross-Site Scripting (XSS), inline script injection, data exfiltration. |
Strict-Transport-Security | RFC 6797 | max-age=31536000; includeSubDomains; preload | SSL-stripping and man-in-the-middle HTTP protocol downgrades. |
X-Frame-Options | RFC 7034 | DENY or SAMEORIGIN (paired with CSP frame-ancestors) | UI redressing and cross-origin iframe clickjacking overlays. |
X-Content-Type-Options | Fetch Standard | nosniff | Drive-by MIME sniffing executing uploaded text/images as JavaScript. |
Referrer-Policy | W3C Referrer Policy | strict-origin-when-cross-origin | Leakage of sensitive URL paths or reset tokens in outbound Referer headers. |
Permissions-Policy | W3C Permissions Policy | camera=(), microphone=(), geolocation=() | Unauthorized third-party iframe access to browser hardware sensors. |
Set-Cookie Flags | RFC 6265bis | Secure; HttpOnly; SameSite=Lax; Path=/ | Cookie theft via XSS (HttpOnly), plaintext sniffing (Secure), and CSRF (SameSite). |
Pay particular attention to Set-Cookie parsing when an endpoint sets multiple cookies in one response: naive string splitting on commas breaks on Expires=Thu, 19 Nov 2026 ... dates. Compliant HTTP clients read each Set-Cookie header field independently via headers.getSetCookie().
Tracing Redirect Chains and Status-Code Method Semantics
When a client follows redirects silently, intermediate headers disappear—hiding unnecessary 302 hops, missing http:// to https:// upgrades, or Set-Cookie writes dropped along the chain. Running requests in manual redirect mode exposes every intermediate status code, Location target, and per-hop latency.
Understanding RFC 9110 §15.4 redirect semantics prevents subtle SEO and API bugs:
301 Moved Permanentlyvs.308 Permanent Redirect: Both signal search engines to consolidate canonical signals onto the target URL, but301permits clients to convertPOSTtoGET, whereas308guarantees method and body preservation.302 Foundvs.307 Temporary Redirect: Both indicate temporary relocation;307preserves non-GET methods strictly.- Circular Loop & SSRF Guards: A production inspector must re-resolve DNS and block private RFC 1918, loopback (
127.0.0.0/8,::1), and link-local destinations on every hop—not just the initial URL—because an attacker can host a public URL that returns302 Location: http://169.254.169.254/.
For dedicated multi-hop link audits across canonical matrices, pair this tool with the Redirect Checker, or verify the underlying host resolution first in our DNS Lookup Tool.
Caching Validators, Compression, and CORS Preflight Pitfalls
Freshness, Revalidation, and Vary Keys
High-throughput web applications balance cache hit rates against stale content using two RFC 9111 mechanisms:
- Freshness Lifetimes: Content-hashed static bundles (for example
app.9f3a2c.js) should shipCache-Control: public, max-age=31536000, immutable, eliminating conditional network round-trips entirely. HTML documents and dynamic APIs should rely onCache-Control: no-cache(store, but revalidate before reuse) orprivate, no-store(never persist sensitive payloads). - Conditional Validators: Returning a strong
ETag: "a84f91c2"(or weakW/"..."when byte-for-byte identity changes under dynamic compression) alongsideLast-Modifiedenables clients to sendIf-None-Matchand receive lightweight304 Not Modifiedresponses. - Compression &
Vary: Serving Brotli (Content-Encoding: br) typically shrinks text assets 15–20% further thangzip, but always pair compression withVary: Accept-Encodingso CDN edge caches segregate compressed and uncompressed variants cleanly.
Diagnosing Cross-Origin Resource Sharing (CORS) and SEO Directives
When a browser initiates a cross-origin request with custom headers (such as Authorization or Content-Type: application/json), it transmits an OPTIONS preflight first. Common production failures surface immediately during header inspection: returning Access-Control-Allow-Origin: * breaks credentialed fetch(..., { credentials: 'include' }) calls, omitting Access-Control-Expose-Headers hides custom rate-limit or pagination headers from frontend JavaScript even when they arrive on the wire, and failing to emit Access-Control-Max-Age forces browsers to repeat preflight round-trips before every API mutation.
Response headers also govern search engine crawl directives independently of HTML <head> markup. For binary assets such as PDF brochures, downloadable archives, or JSON feeds where <meta name="robots"> cannot be embedded, servers emit X-Robots-Tag: noindex, nofollow to prevent accidental search indexing and Link: <https://example.com/guide>; rel="canonical" to consolidate duplicate URL signals cleanly at the transport layer. Always verify that staging environments sending X-Robots-Tag: noindex do not leak that directive onto production origins after deployment.
Reproducing Header Audits in CI and Terminal Pipelines
To reproduce the exact hop-by-hop response headers from a terminal or CI smoke test, use curl with -D - (dump headers to stdout) and -sSL (follow redirects silently while surfacing errors):
# Inspect full redirect chain, status lines, and response headers with Brotli/Gzip requested
curl -sSL -D - -o /dev/null --compressed \
-A "Mozilla/5.0 (compatible; HeaderAudit/1.0)" \
https://example.com
# Test a CORS preflight OPTIONS request explicitly
curl -i -X OPTIONS https://api.example.com/v1/items \
-H "Origin: https://app.example.com" \
-H "Access-Control-Request-Method: POST" \
-H "Access-Control-Request-Headers: Authorization, Content-Type"
If you manage Apache origins and need ready-to-deploy .htaccess directives for HTTPS canonical redirects, Header always set security policies, and compression rules, generate the configuration syntax cleanly using our HTAccess Generator and re-run a live header inspection here to confirm every directive takes effect.
How to Use HTTP Header Checker & Security Analyzer
Paste any public HTTP or HTTPS URL into the target field; missing schemes default automatically to HTTPS.
Select GET or HEAD as the probe method and optionally override the User-Agent string to mimic desktop, mobile, or crawler clients.
Run the inspection to follow redirects manually hop by hop while recording status codes, response times, and raw headers.
Review the Security, SEO, and Performance scorecards to spot missing hardening headers, unsafe CSP wildcards, or uncompressed payloads.
Expand the Cookies, CORS, and Raw Headers panels to verify Set-Cookie security flags and cross-origin access directives.
Re-test immediately after updating Nginx, Apache, Cloudflare, or application middleware rules to confirm header compliance.
Real Examples
Secure Production Site Header
Typical headers returned by a highly hardened web server.
URL: https://www.nexuscalculator.net, Method: HEADContent-Type: text/html; charset=utf-8
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
Content-Security-Policy: default-src 'self' ...
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Referrer-Policy: strict-origin-when-cross-originStandard HTTP to HTTPS Redirect
Redirect tracing sequence showing canonical path resolution.
URL: http://github.com, Method: GETStep 1: http://github.com -> 301 Moved Permanently (Location: https://github.com/)
Step 2: https://github.com/ -> 200 OK
Final: https://github.com/API Endpoint Response headers
CORS and cache validation settings for a public REST API.
URL: https://api.github.com, Method: GETAccess-Control-Allow-Origin: *
Access-Control-Expose-Headers: ETag, Link, RateLimit-Limit...
Cache-Control: public, max-age=60, s-maxage=60
Content-Type: application/json; charset=utf-8Frequently Asked Questions
Why cannot client-side browser JavaScript read all HTTP response headers of a remote website?
What is the difference between HTTP 301/302 and 307/308 redirects?
Why does Access-Control-Allow-Origin: * fail when a frontend sends cookies or credentials?
Why does missing Vary: Accept-Encoding cause problems when Brotli or Gzip is enabled?
What makes Cache-Control: no-cache different from Cache-Control: no-store?
Key Features
- Manual hop-by-hop redirect tracing (up to 5 hops) with per-hop latency measurements and circular-loop detection
- Weighted security header scoring auditing CSP, HSTS, X-Frame-Options, XCTO, Referrer-Policy, Permissions-Policy, and server banner leaks
- Granular Set-Cookie attribute parsing checking Secure, HttpOnly, SameSite, Expires, and Max-Age directives across multiple cookies
- SEO and crawlability header verification covering X-Robots-Tag, HTTP Link rel=canonical, HTTPS upgrades, and Vary: Accept-Encoding
- Caching and payload compression diagnostics inspecting Cache-Control directives, ETag/Last-Modified validators, and Brotli/Gzip encoding
- Customizable GET/HEAD request methods and User-Agent overrides protected by per-hop DNS and SSRF private-IP filtering
Common Use Cases
- Validating newly deployed Content-Security-Policy and Strict-Transport-Security headers before enabling HSTS preloading
- Debugging broken cross-origin API calls by checking Access-Control-Allow-Origin, Methods, and Headers directly on live endpoints
- Auditing CDN cache-hit behavior, immutable asset lifetimes, and conditional ETag validation after modifying reverse-proxy rules
- Verifying that legacy HTTP and www URLs resolve cleanly to canonical HTTPS destinations without redirect loops
- Confirming that authentication Set-Cookie headers enforce HttpOnly, Secure, and appropriate SameSite flags in production
- Checking X-Robots-Tag and HTTP Link canonical headers on non-HTML assets like PDFs, images, and API feeds for technical SEO
Related Tools
Explore More Tools in This Category
View All Developer & Utility ToolsFree URL Redirect Checker
Trace URL redirects instantly. Our free Redirect Checker detects 301, 302, and 307 redirects, uncovering hidden redirect chains and loops to fix your SEO.
Website Screenshot Tool
Capture pixel-perfect screenshots of any website in multiple device resolutions. Generate full-page captures, test responsiveness, analyze SEO meta tags, and measure page load performance.
DNS Lookup Tool & Domain Analyzer
Inspect DNS records (A, AAAA, MX, TXT, CNAME, NS, SOA, CAA, SRV, PTR), analyze SPF/DMARC mail security, detect hosting/nameserver providers, and diagnose resolution issues.
IP Lookup Tool & Geolocation Analyzer
Inspect any IP address (IPv4/IPv6) to discover details about its geolocation, ISP network provider, ASN registration, reverse DNS hostname, proxy/VPN status, and threat metrics.
User Agent Parser & Client Info Detector
Parse, analyze, and decode any browser User Agent (UA) string to identify the browser engine, operating system, rendering engines, device types, bot/crawlers, and client capabilities in real-time.
MIME Type Checker & Content-Type Inspector
Look up IANA media types, verify file uploads locally using binary magic bytes, compare extension-to-header mappings, and audit remote HTTP Content-Type and X-Content-Type-Options security headers.
LLM Token & API Cost Calculator
Estimate BPE token counts, input/output API spend, prompt caching ROI, and RAG context budgets across Gemini 2.5, GPT-4o, GPT-4.1, Claude 4, and DeepSeek models.
Cron Expression Generator & Schedule Tester
Generate, decode, and validate 5-field POSIX cron expressions for Linux, Kubernetes, GitHub Actions, and Vercel, with live previews of upcoming UTC and local execution timestamps.