← Back to Blog

Security Headers as a Trust Signal — How AI Engines Score HSTS, CSP, and Referrer-Policy

Security Headers as a Trust Signal — How AI Engines Score HSTS, CSP, and Referrer-Policy

Part of the security audit tool stack. See the pillar post for the full catalog of sibling audits and where this one fits in the lineup.

Search engines crawl. AI engines verify. Both increasingly weight your security headers as evidence that you take publishing seriously. We built a tool that scores yours and emits the missing _headers block ready to paste.

Open the tool →

What it does

Scores HSTS, CSP, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, Cross-Origin-* + cookie flags. Emits a paste-ready config block in the format your host speaks, pick a tab for Netlify, Cloudflare Pages, Cloudflare Workers, Vercel, nginx, Apache, Caddy, AWS CloudFront, DigitalOcean App Platform, or an Express middleware snippet. Same canonical header set across every tab, rendered in each platform's native syntax.

Multi-host output — pick your platform

One audit, nine output formats. The header values are identical across every tab; what changes is the syntax:

  • Netlify and Cloudflare Pages, both use the _headers file format. Save at your publish directory root.
  • Cloudflare Workers, a JS fetch handler that wraps outgoing responses and adds the headers at the edge. Deploy with wrangler deploy.
  • Vercel, a vercel.json headers array that merges into your existing config.
  • nginxadd_header directives for inside your server { } block.
  • ApacheHeader always set directives for .htaccess.
  • Caddy, the native header directive for a Caddyfile. Pairs well with Caddy's automatic TLS, see the Caddy server writeup.
  • AWS CloudFront, a ResponseHeadersPolicy JSON blob you can pipe into aws cloudfront create-response-headers-policy.
  • DigitalOcean App Platform, an app.yaml static-site header block. Apply via doctl apps update $APP_ID --spec app.yaml.
  • Express, a Node middleware snippet for custom backends.

If your host isn't on that list, the AI fix prompt includes "[pick your host]" as a placeholder so the model tailors the config to whatever you tell it.

How to use it

  1. Open /tools/security-headers-audit/ in your browser.
  2. Enter the URL or domain you want to audit (or paste the inputs the tool requests for that specific check).
  3. Run the audit and review the per-check results inline.
  4. Copy the AI fix prompt from the bottom of the results and paste it into Claude / ChatGPT / Codex, the tool generates a domain-aware prompt that names every issue found.
  5. Apply the fixes to your source tree and re-run to confirm.

Why this exists

Most professional tools in this category cost $99 to $499 per month, lock results behind logins, or run on slow Chrome backends. The jwatte.com tool suite is built on three principles:

  • Free + ungated, no signup, no quota
  • Transparent, every check explains what it measures and how
  • AI-augmented, every output produces a prompt that turns the audit into a fix in one paste

Companion tools

This tool pairs with the rest of the jwatte.com tools hub. For audits at scale, queue it inside Mega Batch. For deep single-page review, run it alongside Mega Analyzer.

Reference

← Back to Blog

Accessibility Options

Text Size
High Contrast
Reduce Motion
Reading Guide
Link Highlighting
Accessibility Statement

J.A. Watte is committed to ensuring digital accessibility for people with disabilities. This site conforms to WCAG 2.1 and 2.2 Level AA guidelines.

Measures Taken

  • Semantic HTML with proper heading hierarchy
  • ARIA labels and roles for interactive components
  • Color contrast ratios meeting WCAG AA (4.5:1)
  • Full keyboard navigation support
  • Skip navigation link
  • Visible focus indicators (3:1 contrast)
  • 44px minimum touch/click targets
  • Dark/light theme with system preference detection
  • Responsive design for all devices
  • Reduced motion support (CSS + toggle)
  • Text size customization (14px–20px)
  • Print stylesheet

Feedback

Contact: jwatte.com/contact

Full Accessibility StatementPrivacy Policy

Last updated: April 2026