A website can load perfectly in a browser while missing important response headers. A security review may report that Content Security Policy is absent, that HSTS is not configured, or that the site can be embedded in an unfamiliar page. These findings deserve attention, but they are not proof that an attack has taken place. The first task is to understand exactly what was measured and what a change would affect.
This guide explains how to check HTTP security headers, interpret common warnings and test a safer configuration without blindly copying a policy from another website. SoftRyva HTTP Security Headers Checker is a free local workspace for reviewing a single copied response. It provides simple presence and value checks and a separate Cloudflare Pages starter draft. It does not scan a remote website, certify its security or automatically edit a server.
Try HTTP Security Headers Checker
Review copied headers locally and prepare a configuration draft.
1. Collect the right response headers
Open a page you own or are authorized to inspect. In Chrome or Firefox, open developer tools, select Network, reload the page and choose the main document request rather than an image, script or analytics request. Find the Response Headers section. Copy its name/value pairs, one per line, without the request headers. You can also use curl on your own site. On Windows, use curl.exe to avoid ambiguity with shell aliases:
curl.exe -sS -D - -o NUL https://example.com/
On macOS or Linux, replace NUL with /dev/null. This command sends a GET request and prints response headers rather than the body. If the response is a redirect, inspect the destination separately. Do not combine headers from multiple responses: security settings on a redirect are not necessarily the settings on the final document. If using developer tools, remove cookies, tokens, internal URLs and any other sensitive values before copying. The tool expects ordinary Name: value lines, not a full HAR file or the page's HTML.

Capture one response — illustrative workflow.
A normal website may serve different headers for its home page, articles, application routes and downloadable files. Repeat this process for representative routes. A browser script cannot necessarily read all headers from another origin: CORS controls which response fields are exposed. That is why this tool takes pasted headers rather than pretending to provide a complete cross-origin scan.
2. Understand Content Security Policy
Content-Security-Policy (CSP) lets a server tell browsers which resource sources and behaviors are permitted. A policy can restrict scripts, frames, objects, images and other resource types. It is an additional defense against certain injection attacks, not a substitute for safe handling of untrusted input, dependency updates or secure application code. A restrictive policy should be designed for the actual application.
For a small static page, a starting point for review might use default-src 'self', object-src 'none' and base-uri 'self'. However, a page that uses inline code, analytics scripts, embedded video, web workers or remote assets will need a more careful design. A policy that works for one page may break another. Avoid adding broad wildcards or unsafe script allowances merely to silence errors. Nonces and hashes can support appropriate script policies when implemented correctly.

CSP: monitoring vs enforcement — illustrative workflow.
Content-Security-Policy-Report-Only is different. It allows developers to investigate potential violations without blocking the resources. The browser console can help identify what would violate the proposed policy, and a separately configured reporting destination can collect reports. A report-only header is not enforced and should not be counted as an active blocking policy. The local checker distinguishes the two and flags some broad script-source indicators. Multiple policies and directive interactions require manual review; the tool is not a full CSP parser or evaluator.
3. Review HTTPS, HSTS and clickjacking protection
HTTPS encrypts transport between browser and server. Strict-Transport-Security (HSTS) instructs supporting browsers to use HTTPS for future connections to a host. A positive max-age indicates the policy duration in seconds, whereas max-age=0 removes a previously stored policy. HSTS is accepted over HTTPS, so the checker asks whether the response actually arrived over HTTPS. It does not inspect the certificate or connection itself.
Do not rush to enable includeSubDomains or preload. A subdomain that still needs HTTP may become inaccessible, and preload changes can be difficult to reverse quickly. Review all affected hosts, confirm certificate renewal and start with a deliberate rollout. HSTS is not included in the generated starter because the tool cannot establish these prerequisites.

HTTPS and HSTS — illustrative workflow.
Framing controls address a different issue: whether other sites can embed the document in a frame. X-Frame-Options with DENY or SAMEORIGIN provides a simple restriction, and an enforced CSP frame-ancestors directive provides more flexible control. A site that is deliberately embedded in a partner application may require different settings. A frame-ancestors directive in a report-only policy does not provide enforcement. Do not assume that the presence of any framing header automatically proves that all embedding risks are resolved.
4. Interpret the other findings in context
X-Content-Type-Options: nosniff instructs browsers to respect declared content types in relevant contexts. Correct MIME types remain necessary, particularly for stylesheets and scripts. Referrer-Policy controls how much referring URL information is sent in subsequent requests. A policy such as strict-origin-when-cross-origin limits cross-origin detail while retaining useful same-origin behavior. Sites with unusual privacy or integration requirements may choose a different policy.
Permissions-Policy controls access to certain browser features. A site that does not need the camera or microphone may choose to restrict them, whereas a legitimate recording application needs appropriate permissions. A policy cannot be judged solely by whether the header exists. Cross-Origin Resource Sharing (CORS) is also context-dependent. A wildcard origin can be deliberate on public resources, but credentialed access and sensitive APIs require careful origin controls. An absent CORS header on a normal document is not automatically a defect.

Interpret findings — illustrative workflow.
The checker reports Observed, Review or Missing. Observed means a recognizable indicator was found, not that the website has passed a security audit. Missing refers only to the supplied response and may be entirely appropriate for an optional header. Review means the configuration requires context, such as a duplicate field, an unknown HTTPS status or a broad script source. The counts are not a security grade and should not be compared as if every finding had equal severity.
5. Prepare a Cloudflare Pages change safely
Cloudflare Pages supports custom response headers for static assets using a plain text file named _headers in the static output directory. In a typical Astro project, a file under public is copied into the built output. Other frameworks may use a different location. Pages Functions responses need their own header handling; static asset rules do not automatically cover them.
Before changing anything, save the current configuration and inspect whether the host, reverse proxy or another rule already sets the same fields. Duplicate headers can produce unexpected effective policies. The generated draft contains a small review-only CSP and examples of nosniff and referrer policy. It deliberately omits HSTS and an enforced CSP. Its broad path example must be narrowed if the application needs different rules for different routes. Never overwrite an existing _headers file without merging and checking the rules.

Safe deployment workflow — illustrative workflow.
Deploy to a staging or preview environment first. Load the main page, navigation, forms, interactive tools, analytics and any legitimate embedded resources. Check the browser console for blocked resources and report-only violations. If something fails, identify its actual source and required behavior instead of weakening the entire policy. Record the original and revised headers, then repeat the same measurements. Roll back if a required feature breaks. Only move from reporting to enforcement after the application-specific policy has been reviewed.
6. Know the limits of a header review
A header inspection is one layer of security work. It cannot prove that authentication, authorization, database access, third-party libraries or file uploads are safe. It does not check DNS records such as DMARC, nor does it verify TLS certificates, malware or server vulnerabilities. Those areas require separate assessment. A website can return excellent headers and still have serious application flaws.

Know the boundaries — illustrative workflow.
For an external assessment of a public website, Mozilla's HTTP Observatory is another free option. It performs a remote scan and provides recommendations. SoftRyva's workspace solves a different task: examining headers you already collected, including those from a local development environment that is not publicly reachable. The standalone tool uses browser-side code and does not send pasted data to a scanning service. The hosting provider still serves the page itself, and browser extensions or compromised devices remain outside the tool's control.
Frequently asked questions
Does a missing CSP mean my website is hacked?
No. It indicates a defense may be absent from the response you examined. Investigate your application and plan a suitable policy rather than treating a warning as evidence of compromise.
Can I scan any URL directly with this tool?
No. Collect one response using your browser or curl, then paste it. This design avoids server-side scanning and the browser's cross-origin header visibility limitations.
Will the generated file work unchanged for every website?
No. It is a review draft for static Cloudflare Pages assets. Merge it with existing rules and test the real application before deploying. Report-only CSP is not protection against execution by itself.
Is DMARC part of HTTP headers?
No. DMARC is published through DNS and concerns email authentication and domain impersonation. Review it separately from HTTP response policies.
Do I need a subscription or Node.js to use the checker?
No. The tool is a standalone browser utility with no external runtime or API dependency. A local web server or ordinary static hosting can serve it.
Final thoughts
Security headers are useful when they fit the application and are verified on real responses. Measure first, separate optional settings from meaningful gaps, stage changes and repeat the checks. A small, careful improvement that preserves essential website behavior is more valuable than a high-looking score obtained by copying an incompatible policy.
Technical references
- MDN: CSP
- MDN: HSTS
- MDN: CORS
- OWASP: HTTP security response headers
- Cloudflare Pages: Headers
- MDN: HTTP Observatory

Top comments (0)