Cloudflare Pages Security Headers
Generate a production-ready Cloudflare Pages `_headers` file with strict CSP, 25/25 ReadyCheck header score, HSTS preload, and immutable `/assets/*` caching.
Build hardened HSTS, strict Content-Security-Policy, Permissions-Policy, and COOP/CORP configs for Cloudflare Pages, Nginx, Vercel, Netlify, Apache & Next.js with instant 0–25 pt ReadyCheck scoring.
HTTP Headers: 17/17 pts · TLS/CAA/security.txt: 8/8 pts · COOP/CORP Hardened
/* Content-Security-Policy: default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data:; connect-src 'self'; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'none'; upgrade-insecure-requests Strict-Transport-Security: max-age=31536000; includeSubDomains; preload X-Content-Type-Options: nosniff X-Frame-Options: DENY Referrer-Policy: strict-origin-when-cross-origin Permissions-Policy: camera=(), microphone=(), geolocation=(), payment=(), usb=() Cross-Origin-Opener-Policy: same-origin Cross-Origin-Resource-Policy: same-origin /assets/* Cache-Control: public, max-age=31536000, immutable
Verify your deployed CSP, HSTS preload, 301 HTTP→HTTPS redirect, DNS CAA, security.txt, DMARC, and AI search readiness in seconds — or grab the $49 ReadyCheck Fix Pack for tailored config bundles.
Launch pre-tuned CSP baselines, middleware snippets, and rollout caveats for your exact deployment stack.
Generate a production-ready Cloudflare Pages `_headers` file with strict CSP, 25/25 ReadyCheck header score, HSTS preload, and immutable `/assets/*` caching.
Configure Next.js App Router security headers in `next.config.mjs` with HSTS, X-Content-Type-Options, Permissions-Policy, and strict CSP guidance for hydration scripts.
Generate valid `vercel.json` header arrays for Edge Network routes with HSTS preload, Permissions-Policy, Referrer-Policy, and clickjacking protection.
Copy-paste hardened Nginx `server {}` block directives using `always` so 4xx/5xx error responses also emit HSTS, CSP, nosniff, and frame protection.
Generate a compliant Netlify `_headers` file for static sites and Edge Functions with strict CSP, HSTS preload, Referrer-Policy, and Permissions-Policy.
Protect Astro static builds and SSR adapters (Cloudflare, Vercel, Node) with strict `script-src 'self'`, zero inline event handlers, and 25/25 security headers.
Configure strict CSP and HTTP security headers for client-side Vite bundles hosted on Cloudflare Pages, Netlify, Vercel, or Nginx without breaking modulepreload.
Generate hardened Node/Express `helmet()` middleware options alongside Nginx/edge proxy headers for full HSTS, CSP, COOP, CORP, and Permissions-Policy coverage.
Add Starlette/FastAPI HTTP security headers middleware and reverse-proxy Nginx rules for Python APIs, Swagger docs isolation, and strict HSTS/CSP enforcement.
Configure Django's built-in `SecurityMiddleware` settings (`SECURE_HSTS_SECONDS`, `X_FRAME_OPTIONS`) plus strict Content-Security-Policy and Permissions-Policy.
Harden Rails 7/8 apps using `config.force_ssl`, `default_headers`, and `content_security_policy.rb` with nonce-ready directives and Permissions-Policy.
Generate zero-dependency Apache `.htaccess` and CDN edge headers for static marketing sites, docs portals, and S3/Cloudflare origins hitting 25/25 ReadyCheck score.
Related tools: Domain Trust Pack (MTA-STS, BIMI, CAA & security.txt) · SPF & DMARC 10-Lookup Guard · AI Crawler robots.txt Builder · 35-Startup Security & AEO Study
In RungLab's 35-site empirical study, most teams launched HTTPS via Cloudflare or Vercel yet left out Content-Security-Policy (5 pts), strong HSTS with includeSubDomains (5 pts), X-Frame-Options, and Permissions-Policy — dropping 12–15 easy points.
Our generator strips carriage returns, newlines, semicolons, quotes, and `'unsafe-*'` smuggling tokens from custom domain fields so malformed user input can never inject rogue directives or split HTTP response headers.
No. Headers like CSP, HSTS, X-Content-Type-Options, Referrer-Policy, and Permissions-Policy execute in browsers and security auditors without blocking OAI-SearchBot, PerplexityBot, Claude-SearchBot, or Googlebot.