--- agent: instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown." endpoint: "https://martech.zone/.well-known/search?q={query}" method: "GET" documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/" description: Grade your HTTP security headers (HSTS, CSP, X-Frame-Options and more), learn what each protects, and copy tested Apache, Nginx, and Cloudflare fixes. title: "Security Headers Checker: Grade HSTS, CSP, and Other HTTP Security Headers | Martech Zone" image: https://martech.zone/wp-content/uploads/2026/12/http-security-headers-grader-app-glass.webp --- ![Frosted glass shield made of stacked header bars with check marks, ringed by glass icon buttons](https://martech.zone/wp-content/uploads/2026/12/http-security-headers-grader-app-glass-420x236.webp "Security Headers Checker: Grade HSTS, CSP, and Other HTTP Security Headers 1") ## Table of Contents Security headers are instructions your web server sends with every page. They tell the browser to use [HTTPS](https://martech.zone/acronym/https-1/) only, which scripts may run, whether another site can frame the page, and how much of your address to share when a visitor clicks away. A missing header rarely breaks anything you can see, so the gap usually surfaces in a scanner report, a security questionnaire, or a customer’s IT review. Marketers are closer to this than they think. The tags on your site, from a [Google Tag Manager](https://refer.martech.zone/google/tagmanager/) container to ad pixels and chat widgets, are third-party code, and the [CSP](https://martech.zone/acronym/csp/) header decides whether that code is allowed to run. Set the headers well and you protect visitors and your brand. Set them carelessly and your [GTM](https://martech.zone/acronym/gtm/) tags and analytics can quietly stop firing. This free checker grades the six headers that matter most and gives you copy-ready fixes for [Apache](https://refer.martech.zone/apache/), [Nginx](https://refer.martech.zone/nginx/), and [Cloudflare](https://refer.martech.zone/cloudflare/). ## Security Headers Checker ### Security Headers Checker v1.0.1Last Update: Dec 4, 2026 Enter a web address, then click **Check**. We request the page, read the security headers it sends, grade each one, and show the fix for anything missing. Web Address **Required** — A page address such as https://example.com. If you leave off https://, we add it. Redirects are followed (up to five), and the headers come from the final page. Check Requesting the page and reading its headers… Was this helpful? Thanks for the feedback! Enter a public web address and click Check. The checker requests the page, follows up to five redirects, and grades the headers on the final response. Each header gets a status, a plain-English explanation, and a fix for your server, and the picker defaults to the server it detects. Results are cached for ten minutes, and Check again now runs a fresh request. ## What the Checker Grades The grade is out of 100 points, split across six headers: - **Strict-Transport-Security, 25 points:** the [HSTS](https://martech.zone/acronym/hsts/) header tells browsers to use HTTPS only. It earns full points with a max-age of at least six months. - **Content-Security-Policy, 25 points:** limits where scripts and other resources can load from. Policies that allow `'unsafe-inline'` without a nonce or hash, `'unsafe-eval'`, or wildcard script sources earn partial credit. - **X-Frame-Options or CSP frame-ancestors, 15 points:** controls whether other sites can embed your page, which blocks clickjacking. - **X-Content-Type-Options, 15 points:** set to `nosniff`, it stops browsers from guessing a file’s [MIME](https://martech.zone/acronym/mime/) type. - **Referrer-Policy, 10 points:** controls how much of the page address is shared when a visitor clicks a link. - **Permissions-Policy, 10 points:** limits which browser features, such as the camera and microphone, the page can use. ## How the Grade Works A header earns full points when it is present and well configured, half when it is present but weak, and none when it is missing or invalid. The total maps to a letter grade: A at 85 points or more, B at 70, C at 55, D at 40, and F below that. An A+ takes all 100 points and no response header that leaks software details, such as a `Server` value with a version number or `X-Powered-By`. | Header | Full points | Half points | No points | | --- | --- | --- | --- | | Strict-Transport-Security | max-age of six months or more | max-age under six months | Missing, invalid, max-age=0, or the page loads over plain HTTP | | Content-Security-Policy | Enforced policy that limits scripts and avoids the weak patterns above | Report-only policy, or a policy with weak script rules | Missing | | Framing protection | X-Frame-Options DENY or SAMEORIGIN, or a CSP frame-ancestors rule | ALLOW-FROM, duplicate headers, or a rule that lets any site frame the page | Neither header is set | | X-Content-Type-Options | nosniff | Not used | Missing or any other value | | Referrer-Policy | no-referrer, same-origin, strict-origin, or strict-origin-when-cross-origin | Missing, or a more permissive value | unsafe-url, or no valid value | | Permissions-Policy | A valid policy is set | Missing, legacy Feature-Policy only, or unreadable syntax | Not used | The checker also shows the cross-origin headers COOP, CORP, and COEP for reference, but they do not change the grade. If a site sits behind a bot challenge, the checker tells you instead of grading the challenge page, and only public addresses can be checked. Because the grade comes from the final page after redirects, test the exact address your visitors land on. Each host and page template can send different headers, so check your home page, a landing page, your checkout, and any subdomain that runs a different platform. ## Why Security Headers Matter to Marketers Most sites still leave this protection off. In the HTTP Archive’s 2025 Web Almanac, HSTS appeared on 36% of mobile pages and Content-Security-Policy on 21.9%, up from 18.5% a year earlier. Permissions-Policy was set on only 3.7% of mobile sites. > The adoption of CSP continued increasing from 18.5% last year to 21.9% this year, an increase of close to 20%. > > *[HTTP Archive, Web Almanac 2025: Security, January 2026](https://almanac.httparchive.org/en/2025/security)* Low adoption means a clean report is a quiet advantage. Here is why a marketing team should care: - **Trust:** security questionnaires and vendor reviews from larger customers can include these headers, so a strong result shortens the conversation. - **Brand protection:** a policy that blocks unapproved scripts limits what an attacker or a compromised vendor script can do on your landing pages and checkout, such as skimming form data or redirecting visitors. I cover how those attacks work in [Third-Party Script Attacks](https://martech.zone/third-party-script-attacks-how-to-protect-your-site-and-users/). - **Search visibility:** Google’s [page experience guidance](https://developers.google.com/search/docs/appearance/page-experience) points site owners to HTTPS, not to individual security headers, so I would not sell these as a ranking tactic. The [SEO](https://martech.zone/acronym/seo/) benefit is protective: HSTS keeps visits on one secure address, and a site that is not injected with spam or malware keeps the visibility it has earned. - **Measurement:** CSP is where marketing and security collide. A policy that blocks your analytics or consent tools breaks reporting, which is why the rollout plan below starts in report-only mode. ## HSTS: Keep Every Visit on HTTPS HSTS tells the browser that a site must only be loaded over HTTPS and that any future `http://` request should be upgraded automatically. It also stops visitors from clicking through certificate errors on that host. MDN walks through the scenario it prevents: a visitor on rogue public Wi-Fi opens an HTTP link, and because the browser already remembers the site as HTTPS only, the attacker’s fake server fails the certificate check and the visitor cannot bypass the warning. That is a [MITM](https://martech.zone/acronym/mitm/) attack that HSTS shuts down. See MDN’s [Strict-Transport-Security reference](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Strict-Transport-Security) for the full walkthrough. The checker recommends `max-age=31536000; includeSubDomains`, which is one year with subdomains covered. A shorter max-age earns half credit. The header only works when it is sent over HTTPS, because browsers ignore it on plain HTTP, so redirect HTTP to HTTPS first. It also only takes effect after a first secure visit, which is the gap preloading closes. If your site runs through Cloudflare, you can switch HSTS on in the dashboard. Cloudflare’s [HSTS documentation](https://refer.martech.zone/cloudflare/hsts/) warns that if you remove HTTPS before disabling HSTS, or before the max-age runs out, your site becomes inaccessible to visitors for that period. Preloading adds your domain to a list built into browsers, so even the first visit is forced to HTTPS. The requirements are a max-age of at least one year, includeSubDomains, and the preload directive, and the rule applies to every subdomain, including internal ones. A forgotten HTTP-only subdomain, such as an old campaign microsite or a vendor-hosted page on your domain, would stop loading. The checker does not require preload for any points, so treat it as a deliberate, optional step. > Don’t request inclusion unless you’re sure that you can support HTTPS for your entire site and all its subdomains in the long term. > > *[hstspreload.org, Removal](https://hstspreload.org/)* Removal is possible, but the same site notes it takes months for a change to reach users through browser updates. That is why preload belongs at the end of the rollout, not the start. ## CSP: Control Which Scripts and Resources Load Content-Security-Policy is the most powerful header on the list and the one most likely to cause trouble, because it governs everything your page loads. > The primary use case for CSP is to control which resources, in particular JavaScript resources, a document is allowed to load. This is mainly used as a defense against cross-site scripting (XSS) attacks, in which an attacker is able to inject malicious code into the victim’s site. > > *[MDN Web Docs, Content Security Policy (CSP)](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CSP)* A policy is a list of approved sources for each type of resource, such as `script-src` for scripts, `img-src` for images, `connect-src` for requests your scripts make, and `frame-src` for iframes you embed. The checker flags the patterns that let an injected [XSS](https://martech.zone/acronym/xss/) script run anyway: `'unsafe-inline'` with no nonce or hash, `'unsafe-eval'`, and wildcard sources such as `*`, `https:`, or `data:` in the script rules. The recommended alternative to unsafe-inline is a nonce, a random value your server generates for every response and places in both the header and each script tag. MDN calls nonces the recommended approach for restricting scripts and styles. Because the value changes on every response, the page cannot be fully static HTML. A hash-based policy suits static pages, since the hashes do not change. A policy can also do two jobs beyond scripts. The `frame-ancestors` directive controls who can embed your page, and `upgrade-insecure-requests` rewrites HTTP subresource requests to HTTPS. The checker’s starter policy uses both. ## CSP, Tag Manager, and Third-Party Pixels This is where most CSP projects stall in marketing. A Google Tag Manager container is inline JavaScript that loads `gtm.js`, so the policy has to allow it. Google’s [guide to Tag Manager and CSP](https://developers.google.com/tag-platform/security/guides/csp) recommends a nonce on that inline snippet, with a hash as another option and `'unsafe-inline'` as a discouraged last resort. > Tag Manager will then propagate the nonce to any scripts that it adds to the page. > > *[Google for Developers, Use Tag Manager with a Content Security Policy, updated November 10, 2026](https://developers.google.com/tag-platform/security/guides/csp)* That convenience has a side effect worth knowing: scripts added inside the container receive the nonce, so CSP will not stop a tag someone publishes there. Limit who can publish container changes. Google lists other things that break or need extra directives under a policy: - **Custom JavaScript variables** evaluate to undefined unless the policy allows `'unsafe-eval'`. Google recommends custom templates as the alternative. - **Preview mode** needs extra Tag Manager and Google hosts allowed for scripts, styles, images, and fonts. - **Every tag you add** has its own list of required origins. Google publishes them for Google Analytics, Google Ads, Floodlight, Merchant Center, and server-side tagging, and other vendors’ pixels each need theirs. Here is a report-only policy for a site that uses Tag Manager with [GA4](https://martech.zone/acronym/ga4/) and no Google Ads features, built from the directives in Google’s guide. Replace the nonce placeholder with a value your server generates per response, and add your own sources before you enforce it. ``` Content-Security-Policy-Report-Only: default-src 'self'; script-src-elem 'self' 'nonce-{SERVER-GENERATED-NONCE}' https://www.googletagmanager.com; img-src 'self' https://www.googletagmanager.com https://*.google-analytics.com; connect-src 'self' https://www.googletagmanager.com https://*.google-analytics.com https://*.google.com; frame-ancestors 'self' ``` When a policy blocks something, Google’s Tag Assistant lists the blocked resources under page issues, so you can add what is legitimate and leave out what is not. Report-only mode lets you do that before anything breaks. ## X-Frame-Options and frame-ancestors: Who Can Embed Your Pages Framing controls stop other sites from loading your page inside an iframe, the setup behind clickjacking, where a visitor is tricked into clicking something hidden. MDN notes that `X-Frame-Options` also guards against some cross-site leaks. The `frame-ancestors` directive in a CSP is the more flexible replacement, and OWASP says it obsoletes X-Frame-Options in browsers that support it. The checker accepts either and gives frame-ancestors priority when both are present. The old header takes DENY, which blocks all framing, or SAMEORIGIN, which allows only your own site. ALLOW-FROM is obsolete and modern browsers ignore it, so use frame-ancestors with an explicit list when you need to allow specific partners. It also has to be sent as a real header, because MDN states that setting X-Frame-Options in a meta tag has no effect. In the Web Almanac data, sites that send the header mostly choose SAMEORIGIN (72.1%) over DENY (24.6%). Marketers run into this in two directions. If your landing pages are embedded in a partner portal, a webinar platform, or a page preview tool, a blanket DENY will break the embed, so list those hosts in frame-ancestors instead of dropping the protection. And these headers control who frames you, not what you embed. Putting a YouTube video, a form, or a scheduler on your page is governed by `frame-src` in your CSP. ## X-Content-Type-Options: Stop File Type Guessing With `nosniff` set, the browser trusts the declared file type instead of guessing. MDN explains that scripts and stylesheets are blocked when their type does not match, and that browsers will not treat a plain-text response as HTML. That closes a route for attacks in which user-uploaded content gets executed as a page. It is the least risky header to add, and the Web Almanac found it on nearly 50 percent of mobile pages, more than any other security header. The one thing to check first is that your files carry the right type. A script served as `text/plain` by a storage bucket or file host will be blocked once nosniff is on, so test marketing assets and tag files that load from outside your main server. ## Referrer-Policy: Share Less Without Breaking Attribution When a visitor clicks a link or your page loads a resource, the browser can tell the destination where the request came from. Referrer-Policy sets how much of your address that includes. Per MDN, `strict-origin-when-cross-origin` is the default when no policy is set, so current browsers already behave this way, but older ones may send the full address, including the query string. Setting it explicitly makes the behavior consistent. The marketing effect is mostly good news. With strict-origin-when-cross-origin, other sites see only your domain on a cross-origin click, never your path or query string, so tracking parameters and tokens in your URLs stay private. Your own analytics still get the full address on same-origin navigation. Stricter values change attribution: `no-referrer` and `same-origin` stop partner and affiliate sites from seeing your domain as the source of a click, which can break referral reporting on their side. The checker passes those values, so choose them on purpose. At the other end, `unsafe-url` sends full addresses everywhere, even over HTTP, and fails the check. ## Permissions-Policy: Turn Off Features You Do Not Use Permissions-Policy lets a page switch off browser features such as the camera, microphone, geolocation, and payment, for itself and for anything it embeds. Features are open by default, so a feature stays available until you name it. Adoption is low, 3.7% of mobile sites in the Web Almanac, and MDN currently lists the header as not Baseline, so browser support is uneven. The cost of setting it is small, though, and it limits what an injected script or an embedded widget can ask for. The checker’s starter value is `camera=(), microphone=(), geolocation=(), payment=(), usb=()`. Adjust it for your site. A store locator needs geolocation for your own pages, so use `geolocation=(self)`, and a site that uses the browser payment API should not disable payment. The checker accepts any valid policy, but the older Feature-Policy header and its syntax do not count. ## How to Roll Out Security Headers Safely Adding every header at once is how a Friday change turns into a broken checkout. This order moves from the least risky to the most: 1. **Take inventory.** Run the checker on every host you serve, and list the tags, embeds, and vendors your pages depend on: tag manager, analytics, chat, forms, video, and payments. 2. **Start with the low-risk headers.** Add `X-Content-Type-Options`, `Referrer-Policy`, and `Permissions-Policy`, then check that your marketing files and embeds still work. 3. **Decide who may embed you.** Set `X-Frame-Options` or `frame-ancestors`, and name any partner or tool that legitimately frames your pages. 4. **Send CSP in report-only mode first.** Use `Content-Security-Policy-Report-Only`, review the violations, add the sources you actually need, and then switch the header name to `Content-Security-Policy`. MDN describes report-only as a policy that is not enforced but sends violations to a reporting endpoint. The checker gives half credit for report-only until you enforce it. 5. **Ramp HSTS in stages.** hstspreload.org suggests max-age values of 300 seconds, one week, and one month, with `includeSubDomains`, waiting out each stage while you watch for broken pages, before moving to a year. Check every subdomain over HTTPS first. 6. **Re-test and keep watching.** Run the checker again after any change to your server, CDN, theme, or tag setup, since a new platform or proxy can add, remove, or duplicate headers. Two of my other free tools help with this work. The [SSL Certificate and Security Contact Checker](https://martech.zone/ssl-certificate-security-contact-checker/) confirms the certificate chain that HSTS depends on, and the [Cookie Consent Scanner](https://martech.zone/cookie-consent-scanner/) checks Referrer-Policy and Permissions-Policy alongside consent and tracker issues. ## Copy-Ready Config Examples Headers can be set at your origin server, at your [CDN](https://martech.zone/acronym/cdn/) or edge, or both. The checker shows the fix for each missing or weak header in all three formats, and the examples below combine the usual set. The Content-Security-Policy line is the checker’s report-only starter. It allows only your own domain, so add the sources your tags need before you enforce it. ![Diagram of security headers moving from the origin server and CDN edge to the browser, with the six graded headers and their points: HSTS 25, CSP 25, framing protection 15, nosniff 15, Referrer-Policy 10, Permissions-Policy 10](https://martech.zone/wp-content/uploads/2026/12/security-headers-server-to-browser-flow-800x497.webp "Security Headers Checker: Grade HSTS, CSP, and Other HTTP Security Headers 2") **Apache** needs `mod_headers`. Put these in your `.htaccess` file or the `VirtualHost`. The `always` keyword sends the header on error responses too. ``` Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains" Header always set X-Content-Type-Options "nosniff" Header always set X-Frame-Options "SAMEORIGIN" Header always set Referrer-Policy "strict-origin-when-cross-origin" Header always set Permissions-Policy "camera=(), microphone=(), geolocation=(), payment=(), usb=()" Header always set Content-Security-Policy-Report-Only "default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'self'; upgrade-insecure-requests" ``` **Nginx** uses `add_header` in the `server` block. The nginx documentation says these directives are inherited from the previous level only if the current level has no `add_header` of its own, so a `location` block that sets one cache or CORS header will silently drop all of these. Version 1.29.3 added `add_header_inherit`, which can change that behavior. ``` add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; add_header X-Content-Type-Options "nosniff" always; add_header X-Frame-Options "SAMEORIGIN" always; add_header Referrer-Policy "strict-origin-when-cross-origin" always; add_header Permissions-Policy "camera=(), microphone=(), geolocation=(), payment=(), usb=()" always; add_header Content-Security-Policy-Report-Only "default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'self'; upgrade-insecure-requests" always; ``` **Cloudflare** sets headers at the edge without touching your origin. Create one [Response Header Transform Rule](https://refer.martech.zone/cloudflare/response-header-transform-rules/) per header. Cloudflare’s documentation notes that the rule changes the response sent to visitors, and that rules run in order, so later rules can overwrite earlier ones. Each rule uses these fields: ``` Rules > Transform Rules > Response Header Transform Rules Operation: Set static Header name: X-Content-Type-Options Value: nosniff ``` Repeat the rule for Referrer-Policy, Permissions-Policy, X-Frame-Options, and the CSP header. For HSTS, use the dedicated setting under SSL/TLS, Edge Certificates, rather than a transform rule. Cloudflare also offers an Add security headers managed transform, but it sends `referrer-policy: same-origin`, which strips your domain from outbound referrers, plus the deprecated X-XSS-Protection and Expect-CT headers. Cloudflare warns that it can block resources, so review what it adds before you turn it on. ## Common Mistakes the Checker Catches - **Headers dropped by a location block.** In Nginx, one `add_header` inside a `location` block replaces the inherited set. Test the pages that live under those blocks, not just the home page. - **The same header set twice.** When an application and a proxy both send a header, the response carries both copies, possibly with conflicting values. OWASP’s guidance is to set each header in one layer only. The checker warns on duplicate framing headers. - **Headers placed in a meta tag.** The Web Almanac found that about 0.11% of mobile sites tried to set policies in a meta tag that browsers do not allow there, most often X-Frame-Options, X-Content-Type-Options, and Permissions-Policy. Browsers ignore them, and a report-only CSP cannot be delivered this way either. - **Version leaks.** The Web Almanac found a `Server` header on 91.5% of hosts and `X-Powered-By` on 23.9%. A version number tells attackers which known flaws to try, and it keeps an otherwise perfect site from an A+. Cloudflare’s Remove X-Powered-By headers managed transform is a quick fix for that one. - **Copying retired headers.** X-XSS-Protection is deprecated, and current browsers ignore it. The checker shows it for information only and suggests removing it. Rely on CSP instead. ## Key Takeaways - The checker grades HSTS, CSP, framing protection, X-Content-Type-Options, Referrer-Policy, and Permissions-Policy out of 100 points, using the headers on the final page after up to five redirects. - Most sites are exposed. The 2025 Web Almanac found HSTS on 36% of mobile pages and CSP on 21.9%, so a strong grade sets you apart. - CSP is the header that touches marketing. Use a nonce for your Tag Manager snippet, limit who can publish container changes, and run the policy in report-only mode before you enforce it. - Roll out from low risk to high: nosniff, Referrer-Policy, and Permissions-Policy first, then framing rules, then CSP, then HSTS in stages. Treat HSTS preload as a deliberate last step. - Set each header in one place, keep it out of meta tags, and remove version-leaking headers such as Server versions and X-Powered-By to reach an A+. [Grade Your Security Headers](https://martech.zone/security-headers-checker/#security-headers-checker) ## Frequently Asked Questions
### What Are HTTP Security Headers? They are response headers your server sends with a page to tell the browser how to handle it. They control whether the page must use HTTPS, which scripts and resources may load, whether other sites can frame the page, how much referrer information is shared, and which browser features the page can use.
### Which Security Headers Should Every Website Have? At a minimum, Strict-Transport-Security, Content-Security-Policy, X-Frame-Options or the CSP frame-ancestors directive, X-Content-Type-Options, Referrer-Policy, and Permissions-Policy. Those are the six this checker grades.
### How Does the Checker Calculate the Grade? It scores 100 points across the six headers: HSTS 25, CSP 25, framing protection 15, X-Content-Type-Options 15, Referrer-Policy 10, and Permissions-Policy 10. A header earns full points when it is well configured, half when it is present but weak, and none when it is missing or invalid. A is 85 or more, and an A+ also requires that no version-leaking header is sent.
### Will a Content Security Policy Break Google Tag Manager or Google Analytics? It can if the policy does not allow them. Google recommends a nonce on the Tag Manager snippet, plus allowing its hosts for scripts, images, and connections. Custom JavaScript variables need unsafe-eval unless you switch to custom templates. Start with Content-Security-Policy-Report-Only so you can see what would be blocked before you enforce anything.
### Should I Use X-Frame-Options or CSP frame-ancestors? Use frame-ancestors if you can, because it supports an allowlist of specific sites and replaces the older header in browsers that support it. X-Frame-Options with DENY or SAMEORIGIN still works as a simple fallback. Do not use ALLOW-FROM, which modern browsers ignore.
### Is It Safe to Add HSTS Preload? Only if every subdomain you own will support HTTPS for the long term. Preload needs a max-age of at least one year, includeSubDomains, and the preload directive, and removal can take months to reach users. Ramp max-age in stages first, and treat preload as optional.
### Do Security Headers Affect SEO? Google’s page experience guidance points to HTTPS rather than to individual security headers, so they are not a known ranking tactic. They help protect your site from injected scripts and spam, which protects the visibility you already have.
### Why Do I Not Get an A+ After Adding All Six Headers? An A+ needs all 100 points and no response header that leaks software details. A Server header with a version number, X-Powered-By, X-AspNet-Version, or X-Generator will hold the grade at an A. Remove those at your server or CDN and run the check again.
### Related Articles [![Isometric assembly of a speech bubble, a clustered network of search spheres, a page with a checkmark, and a density gauge at zero](<> "Keyword Misconceptions: Search Is Now About Questions 3")](https://martech.zone/seo-keyword-mistakes/) ### [Keyword Misconceptions: Search Is Now About Questions](https://martech.zone/seo-keyword-mistakes/) Dec 5, 2026 [![Isometric render of a quality gauge in the red, a stack of identical pages with a sparkle badge, a cracked teal funnel, and a broken chain on a dark slab](<> "5 Online Marketing Mistakes: Scaling AI Content, Broken Attribution, and More 4")](https://martech.zone/top-5-online-marketing-mistakes/) ### [5 Online Marketing Mistakes: Scaling AI Content, Broken Attribution, and More](https://martech.zone/top-5-online-marketing-mistakes/) Dec 5, 2026 [![Martech Zone Tools card for the SERP Snippet Preview, with a glass search-result plaque showing a blue title bar, a favicon, gray description lines, and a pixel-width ruler in a ring of glass icon buttons.](<> "SERP Snippet Preview 5")](https://martech.zone/serp-snippet-preview/) ### [SERP Snippet Preview](https://martech.zone/serp-snippet-preview/) Dec 5, 2026 [![Google Search Console in 2027: read every report, shown as isometric dashboard panels with a trend chart, checklists, and speed gauges](<> "Google Search Console in 2027: How to Read Every Report, Including the New AI Data 6")](https://martech.zone/google-search-console-guide-and-checklist/) ### [Google Search Console in 2027: How to Read Every Report, Including the New AI Data](https://martech.zone/google-search-console-guide-and-checklist/) Dec 4, 2026 Martech Zone Close - [![Glass certificate badge with a shield check and an hourglass for the SSL Certificate and Security Contact Checker](<> "SSL Certificate and Security Contact Checker: Expiration, Issuer, Hostnames, Chain, and security.txt 7")](https://martech.zone/ssl-certificate-security-contact-checker/) [SSL Certificate and Security Contact Checker: Expiration, Issuer, Hostnames, Chain, and security.txt](https://martech.zone/ssl-certificate-security-contact-checker/)Nov 24, 2026 - [![Martech Zone Tools card for the Robots.txt Generator, with a frosted glass crawler bot in a ring of glass icons.](<> "Robots.txt Generator: Import, Audit, and Optimize Your robots.txt File 8")](https://martech.zone/robots-txt-generator/) [Robots.txt Generator: Import, Audit, and Optimize Your robots.txt File](https://martech.zone/robots-txt-generator/)Dec 2, 2026 - [![HEX, RGB, and CMYK color converter tool](<> "Color Converter: HEX, RGB, HSL, and HSV (With Alpha Support) 9")](https://martech.zone/rgb-hex-converter/) [Color Converter: HEX, RGB, HSL, and HSV (With Alpha Support)](https://martech.zone/rgb-hex-converter/)Mar 2, 2026 - [![CSV to rows and rows to CSV converter tool](<> "Rows to CSV, CSV to Rows Converter: Transpose and Remove Duplicates 10")](https://martech.zone/convert-rows-to-csv-or-csv-to-rows/) [Rows to CSV, CSV to Rows Converter: Transpose and Remove Duplicates](https://martech.zone/convert-rows-to-csv-or-csv-to-rows/)Sep 18, 2024 ![Frosted glass shield made of stacked header bars with check marks, ringed by glass icon buttons](https://martech.zone/wp-content/uploads/2026/12/http-security-headers-grader-app-glass-420x236.webp "Security Headers Checker: Grade HSTS, CSP, and Other HTTP Security Headers 11") About the Author [![Photo of Douglas Karr]()](https://martech.zone/author/douglaskarr/) ### [Douglas Karr](https://martech.zone/author/douglaskarr/) Douglas Karr is a fractional Chief Marketing Officer specializing in SaaS and AI companies, where he helps scale marketing operations, drive demand generation, and implement AI-powered strategies. He is the founder and publisher of Martech Zone, a leading publication in… [More »](https://martech.zone/author/douglaskarr/) - [Website](https://martech.zone/partner/dknewmedia/) - [Facebook](https://www.facebook.com/douglaskarr) - [X](https://twitter.com/dknewmedia) - [LinkedIn](http://www.linkedin.com/in/douglaskarr/) - [YouTube](https://www.youtube.com/user/douglaskarr) - [Instagram](https://instagram.com/dknewmedia) Featured App [HTTP Header Viewer](https://martech.zone/api-post-retrieve-view-header-data/) Inspect the HTTP headers returned for any page or API request. [More Apps](https://martech.zone/apps/) Upcoming Retail Holidays #### [December 2026](https://martech.zone/calendar/#202612) - 10**Human Rights Day** - 14**Green Monday** - 14**Free Shipping Day** - 15**Hanukkah Start** - 19**Super Saturday** - 21**First Day of Winter** - 22**Hanukkah End** - 23**Festivus** - 24**Christmas Eve** - 25**Christmas** [Retail Holiday Calendar](https://martech.zone/calendar/) Upcoming Conferences Click date to open event. #### [December 2026](https://martech.zone/conferences/#202612) - [5](https://refer.martech.zone/events/wordcamp-bandung-2026/ "Saturday, December 5")**WordCamp Bandung 2026** Universitas Ekuitas Indonesia, Bandung, West Java, Indonesia - [6](https://refer.martech.zone/events/neurips-2026-sydney/ "Sunday, December 6 through Saturday, December 12")**NeurIPS 2026 Sydney** Sydney, New South Wales, Australia - [7](https://refer.martech.zone/events/black-hat-europe-2026/ "Monday, December 7 through Thursday, December 10")**Black Hat Europe 2026** ExCeL London, London, England, United Kingdom - [7](https://refer.martech.zone/events/inma-media-advertising-summit-2026/ "Monday, December 7 through Thursday, December 10")**INMA Media Advertising Summit 2026** WNYC's The Greene Space, New York, New York, United States - [8](https://refer.martech.zone/events/digital-summit-dallas-2026/ "Tuesday, December 8 through Wednesday, December 9")**Digital Summit Dallas 2026** Dallas, Texas, United States - [8](https://refer.martech.zone/events/from-scroll-to-store-what-holiday-foot-traffic-tells-marketers-about-2027/ "Tuesday, December 8")**From Scroll to Store: What Holiday Foot Traffic Tells Marketers About 2027** Online - [9](https://refer.martech.zone/events/affiliate-world-asia-2026/ "Wednesday, December 9 through Thursday, December 10")**Affiliate World Asia 2026** Centara Grand & Bangkok Convention Center, Bangkok, Thailand - [9](https://refer.martech.zone/events/getting-ahead-in-ai-visibility-how-to-know-youre-winning-2026/ "Wednesday, December 9")**Getting Ahead in AI Visibility: How to Know You're Winning 2026** EMARKETER Insights Lounge, New York, New York, United States - [9](https://refer.martech.zone/events/neurips-2026-atlanta/ "Wednesday, December 9 through Sunday, December 13")**NeurIPS 2026 Atlanta** Atlanta, Georgia, United States - [9](https://refer.martech.zone/events/neurips-2026-paris/ "Wednesday, December 9 through Sunday, December 13")**NeurIPS 2026 Paris** Paris, Île-de-France, France [Conference Calendar](https://martech.zone/conferences/) Close Search Martech ZoneSearchType your search term and press Enter. - [Free Tools](https://martech.zone/apps/) - [Builders](https://martech.zone/apps/builders/) - [Calculators](https://martech.zone/apps/calculators/) - [Converters](https://martech.zone/apps/converters/) - [Information](https://martech.zone/apps/information/) - [Queries](https://martech.zone/apps/queries/) - [Tools](https://martech.zone/apps/tools/) - [Viewers](https://martech.zone/apps/viewers/) - [Acronyms](https://martech.zone/acronyms/) - Categories - [Advertising Technology](https://martech.zone/advertising/) - [Analytics & Testing](https://martech.zone/analytics/) - [Artificial Intelligence](https://martech.zone/ai/) - [Content Marketing](https://martech.zone/content/) - [E-commerce and Retail](https://martech.zone/ecommerce/) - [Email Marketing](https://martech.zone/email-marketing/ "Email Marketing & Email Marketing Automation") - [Mobile Marketing, Messaging, and Apps](https://martech.zone/mobile/) - [Sales Enablement, Automation, and Performance](https://martech.zone/sales/) - [Paid and Organic Search Marketing](https://martech.zone/search/) - [Social Media & Influencer Marketing](https://martech.zone/social/) - [Martech Zone Authors](https://martech.zone/authors/) - [Marketing & Sales Videos](https://martech.zone/video/) - [Marketing Books](https://martech.zone/books/) - [Marketing Conferences](https://martech.zone/conferences/) - [Marketing Events](https://martech.zone/events/) - [Marketing Infographics](https://martech.zone/infographics/) - [Marketing Interviews](https://martech.zone/podcasts/ "Listen to our Podcasts") - [Sales and Marketing Training](https://martech.zone/training/) - [Retail Sales Calendar](https://martech.zone/calendar/) - [Contribute](https://martech.zone/submit/ "Submit an Article") * [RSS](https://feed.martech.zone/) * [Newsletter](https://martech.zone/subscribe/) * [X](https://refer.martech.zone/x/) * [LinkedIn](https://refer.martech.zone/linkedin/) * [YouTube](https://refer.martech.zone/youtube/) * [Apple](https://refer.martech.zone/apple/news/) * [Instagram](https://refer.martech.zone/instagram/) * [Paypal](https://refer.martech.zone/paypal/) * [TikTok](https://refer.martech.zone/tiktok/) * [Buy Me a Coffee](https://refer.martech.zone/buymeacoffee/) × Close Search Martech ZoneType your search term and press Enter. Close Search Martech ZoneType your search term and press Enter. Share XLinkedInBlueskyThreadsFacebookRedditCopy quote with linkShare via Email ![]() Ask Martech Zone ```json {"@context":"https://schema.org","@graph":[[{"@context":"https://schema.org","@type":"SiteNavigationElement","@id":"#rank-math-toc","name":"Security Headers Checker","url":"https://martech.zone/security-headers-checker/#security-headers-checker"},{"@context":"https://schema.org","@type":"SiteNavigationElement","@id":"#rank-math-toc","name":"What the Checker Grades","url":"https://martech.zone/security-headers-checker/#what-the-checker-grades"},{"@context":"https://schema.org","@type":"SiteNavigationElement","@id":"#rank-math-toc","name":"How the Grade Works","url":"https://martech.zone/security-headers-checker/#how-the-grade-works"},{"@context":"https://schema.org","@type":"SiteNavigationElement","@id":"#rank-math-toc","name":"Why Security Headers Matter to Marketers","url":"https://martech.zone/security-headers-checker/#why-security-headers-matter-to-marketers"},{"@context":"https://schema.org","@type":"SiteNavigationElement","@id":"#rank-math-toc","name":"HSTS: Keep Every Visit on HTTPS","url":"https://martech.zone/security-headers-checker/#hsts-keep-every-visit-on-https"},{"@context":"https://schema.org","@type":"SiteNavigationElement","@id":"#rank-math-toc","name":"CSP: Control Which Scripts and Resources Load","url":"https://martech.zone/security-headers-checker/#csp-control-which-scripts-and-resources-load"},{"@context":"https://schema.org","@type":"SiteNavigationElement","@id":"#rank-math-toc","name":"CSP, Tag Manager, and Third-Party Pixels","url":"https://martech.zone/security-headers-checker/#csp-tag-manager-and-third-party-pixels"},{"@context":"https://schema.org","@type":"SiteNavigationElement","@id":"#rank-math-toc","name":"X-Frame-Options and frame-ancestors: Who Can Embed Your Pages","url":"https://martech.zone/security-headers-checker/#x-frame-options-and-frame-ancestors-who-can-embed-your-pages"},{"@context":"https://schema.org","@type":"SiteNavigationElement","@id":"#rank-math-toc","name":"X-Content-Type-Options: Stop File Type Guessing","url":"https://martech.zone/security-headers-checker/#x-content-type-options-stop-file-type-guessing"},{"@context":"https://schema.org","@type":"SiteNavigationElement","@id":"#rank-math-toc","name":"Referrer-Policy: Share Less Without Breaking Attribution","url":"https://martech.zone/security-headers-checker/#referrer-policy-share-less-without-breaking-attribution"},{"@context":"https://schema.org","@type":"SiteNavigationElement","@id":"#rank-math-toc","name":"Permissions-Policy: Turn Off Features You Do Not Use","url":"https://martech.zone/security-headers-checker/#permissions-policy-turn-off-features-you-do-not-use"},{"@context":"https://schema.org","@type":"SiteNavigationElement","@id":"#rank-math-toc","name":"How to Roll Out Security Headers Safely","url":"https://martech.zone/security-headers-checker/#how-to-roll-out-security-headers-safely"},{"@context":"https://schema.org","@type":"SiteNavigationElement","@id":"#rank-math-toc","name":"Copy-Ready Config Examples","url":"https://martech.zone/security-headers-checker/#copy-ready-config-examples"},{"@context":"https://schema.org","@type":"SiteNavigationElement","@id":"#rank-math-toc","name":"Common Mistakes the Checker Catches","url":"https://martech.zone/security-headers-checker/#common-mistakes-the-checker-catches"},{"@context":"https://schema.org","@type":"SiteNavigationElement","@id":"#rank-math-toc","name":"Key Takeaways","url":"https://martech.zone/security-headers-checker/#key-takeaways"}],{"@type":"Place","@id":"https://martech.zone/#place","address":{"@type":"PostalAddress","streetAddress":"7915 S Emerson Ave, Suite B203","addressLocality":"Indianapolis","addressRegion":"Indiana","postalCode":"46237","addressCountry":"United States of America"}},{"@type":"Organization","@id":"https://martech.zone/#organization","name":"DK New Media, LLC","url":"https://martech.zone","sameAs":["https://twitter.com/martech_zone","https://www.linkedin.com/company/martechzone/","https://www.youtube.com/@MartechZone","https://x.com/martech_zone","https://www.instagram.com/martech_zone/"],"email":"info@martech.zone","address":{"@type":"PostalAddress","streetAddress":"7915 S Emerson Ave, Suite B203","addressLocality":"Indianapolis","addressRegion":"Indiana","postalCode":"46237","addressCountry":"United States of America"},"location":{"@id":"https://martech.zone/#place"}},{"@type":"WebSite","@id":"https://martech.zone/#website","url":"https://martech.zone","name":"Martech Zone","publisher":{"@id":"https://martech.zone/#organization"},"inLanguage":"en-US","potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://martech.zone/s/{search_term_string}/"},"query-input":"required name=search_term_string"}},{"@type":"ImageObject","@id":"https://martech.zone/wp-content/uploads/2026/12/http-security-headers-grader-app-glass.webp","url":"https://martech.zone/wp-content/uploads/2026/12/http-security-headers-grader-app-glass.webp","width":"1200","height":"675","caption":"Frosted glass shield made of stacked header bars with check marks, ringed by glass icon buttons","inLanguage":"en-US"},{"@type":"BreadcrumbList","@id":"https://martech.zone/security-headers-checker/#breadcrumb","itemListElement":[{"@type":"ListItem","position":"1","item":{"@id":"https://martech.zone","name":"Martech Zone"}},{"@type":"ListItem","position":"2","item":{"@id":"https://martech.zone/apps/","name":"Martech Zone Apps"}},{"@type":"ListItem","position":"3","item":{"@id":"https://martech.zone/security-headers-checker/","name":"Security Headers Checker: Grade HSTS, CSP, and Other HTTP Security Headers"}}]},{"@type":"WebPage","@id":"https://martech.zone/security-headers-checker/#webpage","url":"https://martech.zone/security-headers-checker/","name":"Security Headers Checker: Grade HSTS, CSP, and Other HTTP Security Headers | Martech Zone","datePublished":"2026-12-04T08:28:38-05:00","dateModified":"2026-12-04T08:46:51-05:00","isPartOf":{"@id":"https://martech.zone/#website"},"primaryImageOfPage":{"@id":"https://martech.zone/wp-content/uploads/2026/12/http-security-headers-grader-app-glass.webp"},"inLanguage":"en-US","breadcrumb":{"@id":"https://martech.zone/security-headers-checker/#breadcrumb"}},{"@type":"Person","@id":"https://martech.zone/author/douglaskarr/","name":"Douglas Karr","description":"Douglas Karr is the founder of the Martech Zone. Douglas is a recognized expert on digital transformation and his firm, DK New Media, assists enterprise companies maximize their investment on Salesforce technologies.","url":"https://martech.zone/author/douglaskarr/","image":{"@type":"ImageObject","@id":"https://secure.gravatar.com/avatar/7a4697525aa02d9624d34defdfcefdb87420e45caf7398c3a4b66f1dd74fd441?s=96&d=blank&r=g","url":"https://secure.gravatar.com/avatar/7a4697525aa02d9624d34defdfcefdb87420e45caf7398c3a4b66f1dd74fd441?s=96&d=blank&r=g","caption":"Douglas Karr","inLanguage":"en-US"},"sameAs":["https://martech.zone/partner/dknewmedia/","https://www.facebook.com/douglaskarr","https://twitter.com/https://twitter.com/dknewmedia"],"worksFor":{"@id":"https://martech.zone/#organization"}},{"@type":"Article","headline":"Security Headers Checker: Grade HSTS, CSP, and Other HTTP Security Headers | Martech Zone","keywords":"security headers checker,http security headers,content security policy","datePublished":"2026-12-04T08:28:38-05:00","dateModified":"2026-12-04T08:46:51-05:00","articleSection":"Martech Zone Apps, Martech Zone Query Tools","author":{"@id":"https://martech.zone/author/douglaskarr/","name":"Douglas Karr"},"publisher":{"@id":"https://martech.zone/#organization"},"description":"Grade your HTTP security headers (HSTS, CSP, X-Frame-Options and more), learn what each protects, and copy tested Apache, Nginx, and Cloudflare fixes.","name":"Security Headers Checker: Grade HSTS, CSP, and Other HTTP Security Headers | Martech Zone","subjectOf":[{"@type":"FAQPage","mainEntity":[{"@type":"Question","url":"https://martech.zone/security-headers-checker/#faq-question-1764900401000","name":"What Are HTTP Security Headers?","acceptedAnswer":{"@type":"Answer","text":"They are response headers your server sends with a page to tell the browser how to handle it. They control whether the page must use HTTPS, which scripts and resources may load, whether other sites can frame the page, how much referrer information is shared, and which browser features the page can use."}},{"@type":"Question","url":"https://martech.zone/security-headers-checker/#faq-question-1764900401001","name":"Which Security Headers Should Every Website Have?","acceptedAnswer":{"@type":"Answer","text":"At a minimum, Strict-Transport-Security, Content-Security-Policy, X-Frame-Options or the CSP frame-ancestors directive, X-Content-Type-Options, Referrer-Policy, and Permissions-Policy. Those are the six this checker grades."}},{"@type":"Question","url":"https://martech.zone/security-headers-checker/#faq-question-1764900401002","name":"How Does the Checker Calculate the Grade?","acceptedAnswer":{"@type":"Answer","text":"It scores 100 points across the six headers: HSTS 25, CSP 25, framing protection 15, X-Content-Type-Options 15, Referrer-Policy 10, and Permissions-Policy 10. A header earns full points when it is well configured, half when it is present but weak, and none when it is missing or invalid. A is 85 or more, and an A+ also requires that no version-leaking header is sent."}},{"@type":"Question","url":"https://martech.zone/security-headers-checker/#faq-question-1764900401003","name":"Will a Content Security Policy Break Google Tag Manager or Google Analytics?","acceptedAnswer":{"@type":"Answer","text":"It can if the policy does not allow them. Google recommends a nonce on the Tag Manager snippet, plus allowing its hosts for scripts, images, and connections. Custom JavaScript variables need unsafe-eval unless you switch to custom templates. Start with Content-Security-Policy-Report-Only so you can see what would be blocked before you enforce anything."}},{"@type":"Question","url":"https://martech.zone/security-headers-checker/#faq-question-1764900401004","name":"Should I Use X-Frame-Options or CSP frame-ancestors?","acceptedAnswer":{"@type":"Answer","text":"Use frame-ancestors if you can, because it supports an allowlist of specific sites and replaces the older header in browsers that support it. X-Frame-Options with DENY or SAMEORIGIN still works as a simple fallback. Do not use ALLOW-FROM, which modern browsers ignore."}},{"@type":"Question","url":"https://martech.zone/security-headers-checker/#faq-question-1764900401005","name":"Is It Safe to Add HSTS Preload?","acceptedAnswer":{"@type":"Answer","text":"Only if every subdomain you own will support HTTPS for the long term. Preload needs a max-age of at least one year, includeSubDomains, and the preload directive, and removal can take months to reach users. Ramp max-age in stages first, and treat preload as optional."}},{"@type":"Question","url":"https://martech.zone/security-headers-checker/#faq-question-1764900401006","name":"Do Security Headers Affect SEO?","acceptedAnswer":{"@type":"Answer","text":"Google's page experience guidance points to HTTPS rather than to individual security headers, so they are not a known ranking tactic. They help protect your site from injected scripts and spam, which protects the visibility you already have."}},{"@type":"Question","url":"https://martech.zone/security-headers-checker/#faq-question-1764900401007","name":"Why Do I Not Get an A+ After Adding All Six Headers?","acceptedAnswer":{"@type":"Answer","text":"An A+ needs all 100 points and no response header that leaks software details. A Server header with a version number, X-Powered-By, X-AspNet-Version, or X-Generator will hold the grade at an A. Remove those at your server or CDN and run the check again."}}]}],"@id":"https://martech.zone/security-headers-checker/#richSnippet","isPartOf":{"@id":"https://martech.zone/security-headers-checker/#webpage"},"image":{"@id":"https://martech.zone/wp-content/uploads/2026/12/http-security-headers-grader-app-glass.webp"},"inLanguage":"en-US","mainEntityOfPage":{"@id":"https://martech.zone/security-headers-checker/#webpage"}},{"@type":"NewsArticle","@id":"https://martech.zone/security-headers-checker/#newsarticle","headline":"Security Headers Checker: Grade HSTS, CSP, and Other HTTP Security Headers","datePublished":"2026-12-04T08:28:38-05:00","dateModified":"2026-12-04T08:46:51-05:00","mainEntityOfPage":{"@type":"WebPage","@id":"https://martech.zone/security-headers-checker/"},"author":{"@type":"Person","name":"Douglas Karr","url":"https://martech.zone/author/douglaskarr/"},"publisher":{"@type":"Organization","name":"Martech Zone","url":"https://martech.zone/","logo":{"@type":"ImageObject","url":"https://martech.zone/wp-content/themes/mtz-26/images/mtz_logo.svg"}},"image":{"@type":"ImageObject","url":"https://martech.zone/wp-content/uploads/2026/12/http-security-headers-grader-app-glass.webp"},"description":"Security Headers Checker grades your site's HSTS, CSP, framing, referrer, and permissions headers. Learn what each one protects and how to roll them out without breaking your tags."}]} {"@context":"https://schema.org","@type":"WebApplication","name":"Security Headers Checker","description":"Grade a website's HTTP security headers and get copy-ready Apache, Nginx and Cloudflare fixes for anything missing or weak.","applicationCategory":"SecurityApplication","operatingSystem":"Any","browserRequirements":"Requires JavaScript","url":"https://martech.zone/security-headers-checker/","softwareVersion":"1.0.1","isAccessibleForFree":true,"offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"publisher":{"@type":"Organization","name":"Martech Zone","url":"https://martech.zone/"}} {"@context":"http:\/\/schema.org","@type":"BreadcrumbList","@id":"#Breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"item":{"name":"Home","@id":"https:\/\/martech.zone\/"}},{"@type":"ListItem","position":2,"item":{"name":"Martech Zone Apps","@id":"https:\/\/martech.zone\/apps\/"}},{"@type":"ListItem","position":3,"item":{"name":"Martech Zone Query Tools","@id":"https:\/\/martech.zone\/apps\/query\/"}}]} {"@context":"http:\/\/schema.org","@type":"Article","dateCreated":"2026-12-04T08:28:38-05:00","datePublished":"2026-12-04T08:28:38-05:00","dateModified":"2026-12-04T08:46:51-05:00","headline":"Security Headers Checker: Grade HSTS, CSP, and Other HTTP Security Headers","name":"Security Headers Checker: Grade HSTS, CSP, and Other HTTP Security Headers","keywords":"cdn,content security policy,csp,ga4,gtm,HSTS,http,https,mime,mitm,security,security headers,seo,website security,xss","url":"https:\/\/martech.zone\/security-headers-checker\/","description":"Security Headers CheckerWhat the Checker GradesHow the Grade WorksWhy Security Headers Matter to MarketersHSTS: Keep Every Visit on HTTPSCSP: Control Which Scripts and Resources LoadCSP, Tag Manager,","copyrightYear":"2026","articleSection":"Martech Zone Apps,Martech Zone Query Tools","articleBody":"\nSecurity Headers CheckerWhat the Checker GradesHow the Grade WorksWhy Security Headers Matter to MarketersHSTS: Keep Every Visit on HTTPSCSP: Control Which Scripts and Resources LoadCSP, Tag Manager, and Third-Party PixelsX-Frame-Options and frame-ancestors: Who Can Embed Your PagesX-Content-Type-Options: Stop File Type GuessingReferrer-Policy: Share Less Without Breaking AttributionPermissions-Policy: Turn Off Features You Do Not UseHow to Roll Out Security Headers SafelyCopy-Ready Config ExamplesCommon Mistakes the Checker CatchesKey Takeaways\n\n\n\nSecurity headers are instructions your web server sends with every page. They tell the browser to use HTTPS only, which scripts may run, whether another site can frame the page, and how much of your address to share when a visitor clicks away. A missing header rarely breaks anything you can see, so the gap usually surfaces in a scanner report, a security questionnaire, or a customer's IT review.\n\n\n\nMarketers are closer to this than they think. The tags on your site, from a Google Tag Manager container to ad pixels and chat widgets, are third-party code, and the CSP header decides whether that code is allowed to run. Set the headers well and you protect visitors and your brand. Set them carelessly and your GTM tags and analytics can quietly stop firing. This free checker grades the six headers that matter most and gives you copy-ready fixes for Apache, Nginx, and Cloudflare.\n\n\n\nSecurity Headers Checker\n\n\n\n\n\n\n\nEnter a public web address and click Check. The checker requests the page, follows up to five redirects, and grades the headers on the final response. Each header gets a status, a plain-English explanation, and a fix for your server, and the picker defaults to the server it detects. Results are cached for ten minutes, and Check again now runs a fresh request.\n\n\n\nWhat the Checker Grades\n\n\n\nThe grade is out of 100 points, split across six headers:\n\n\n\n\nStrict-Transport-Security, 25 points: the HSTS header tells browsers to use HTTPS only. It earns full points with a max-age of at least six months.\n\nContent-Security-Policy, 25 points: limits where scripts and other resources can load from. Policies that allow 'unsafe-inline' without a nonce or hash, 'unsafe-eval', or wildcard script sources earn partial credit.\n\nX-Frame-Options or CSP frame-ancestors, 15 points: controls whether other sites can embed your page, which blocks clickjacking.\n\nX-Content-Type-Options, 15 points: set to nosniff, it stops browsers from guessing a file's MIME type.\n\nReferrer-Policy, 10 points: controls how much of the page address is shared when a visitor clicks a link.\n\nPermissions-Policy, 10 points: limits which browser features, such as the camera and microphone, the page can use.\n\n\n\n\nHow the Grade Works\n\n\n\nA header earns full points when it is present and well configured, half when it is present but weak, and none when it is missing or invalid. The total maps to a letter grade: A at 85 points or more, B at 70, C at 55, D at 40, and F below that. An A+ takes all 100 points and no response header that leaks software details, such as a Server value with a version number or X-Powered-By.\n\n\n\nHeaderFull pointsHalf pointsNo pointsStrict-Transport-Securitymax-age of six months or moremax-age under six monthsMissing, invalid, max-age=0, or the page loads over plain HTTPContent-Security-PolicyEnforced policy that limits scripts and avoids the weak patterns aboveReport-only policy, or a policy with weak script rulesMissingFraming protectionX-Frame-Options DENY or SAMEORIGIN, or a CSP frame-ancestors ruleALLOW-FROM, duplicate headers, or a rule that lets any site frame the pageNeither header is setX-Content-Type-OptionsnosniffNot usedMissing or any other valueReferrer-Policyno-referrer, same-origin, strict-origin, or strict-origin-when-cross-originMissing, or a more permissive valueunsafe-url, or no valid valuePermissions-PolicyA valid policy is setMissing, legacy Feature-Policy only, or unreadable syntaxNot used\n\n\n\nThe checker also shows the cross-origin headers COOP, CORP, and COEP for reference, but they do not change the grade. If a site sits behind a bot challenge, the checker tells you instead of grading the challenge page, and only public addresses can be checked. Because the grade comes from the final page after redirects, test the exact address your visitors land on. Each host and page template can send different headers, so check your home page, a landing page, your checkout, and any subdomain that runs a different platform.\n\n\n\nWhy Security Headers Matter to Marketers\n\n\n\nMost sites still leave this protection off. In the HTTP Archive's 2025 Web Almanac, HSTS appeared on 36% of mobile pages and Content-Security-Policy on 21.9%, up from 18.5% a year earlier. Permissions-Policy was set on only 3.7% of mobile sites.\n\n\n\n\nThe adoption of CSP continued increasing from 18.5% last year to 21.9% this year, an increase of close to 20%.\nHTTP Archive, Web Almanac 2025: Security, January 2026\n\n\n\nLow adoption means a clean report is a quiet advantage. Here is why a marketing team should care:\n\n\n\n\nTrust: security questionnaires and vendor reviews from larger customers can include these headers, so a strong result shortens the conversation.\n\nBrand protection: a policy that blocks unapproved scripts limits what an attacker or a compromised vendor script can do on your landing pages and checkout, such as skimming form data or redirecting visitors. I cover how those attacks work in Third-Party Script Attacks.\n\nSearch visibility: Google's page experience guidance points site owners to HTTPS, not to individual security headers, so I would not sell these as a ranking tactic. The SEO benefit is protective: HSTS keeps visits on one secure address, and a site that is not injected with spam or malware keeps the visibility it has earned.\n\nMeasurement: CSP is where marketing and security collide. A policy that blocks your analytics or consent tools breaks reporting, which is why the rollout plan below starts in report-only mode.\n\n\n\n\nHSTS: Keep Every Visit on HTTPS\n\n\n\nHSTS tells the browser that a site must only be loaded over HTTPS and that any future http:\/\/ request should be upgraded automatically. It also stops visitors from clicking through certificate errors on that host. MDN walks through the scenario it prevents: a visitor on rogue public Wi-Fi opens an HTTP link, and because the browser already remembers the site as HTTPS only, the attacker's fake server fails the certificate check and the visitor cannot bypass the warning. That is a MITM attack that HSTS shuts down. See MDN's Strict-Transport-Security reference for the full walkthrough.\n\n\n\nThe checker recommends max-age=31536000; includeSubDomains, which is one year with subdomains covered. A shorter max-age earns half credit. The header only works when it is sent over HTTPS, because browsers ignore it on plain HTTP, so redirect HTTP to HTTPS first. It also only takes effect after a first secure visit, which is the gap preloading closes.\n\n\n\nIf your site runs through Cloudflare, you can switch HSTS on in the dashboard. Cloudflare's HSTS documentation warns that if you remove HTTPS before disabling HSTS, or before the max-age runs out, your site becomes inaccessible to visitors for that period.\n\n\n\nPreloading adds your domain to a list built into browsers, so even the first visit is forced to HTTPS. The requirements are a max-age of at least one year, includeSubDomains, and the preload directive, and the rule applies to every subdomain, including internal ones. A forgotten HTTP-only subdomain, such as an old campaign microsite or a vendor-hosted page on your domain, would stop loading. The checker does not require preload for any points, so treat it as a deliberate, optional step.\n\n\n\n\nDon't request inclusion unless you're sure that you can support HTTPS for your entire site and all its subdomains in the long term.\nhstspreload.org, Removal\n\n\n\nRemoval is possible, but the same site notes it takes months for a change to reach users through browser updates. That is why preload belongs at the end of the rollout, not the start.\n\n\n\nCSP: Control Which Scripts and Resources Load\n\n\n\nContent-Security-Policy is the most powerful header on the list and the one most likely to cause trouble, because it governs everything your page loads.\n\n\n\n\nThe primary use case for CSP is to control which resources, in particular JavaScript resources, a document is allowed to load. This is mainly used as a defense against cross-site scripting (XSS) attacks, in which an attacker is able to inject malicious code into the victim's site.\nMDN Web Docs, Content Security Policy (CSP)\n\n\n\nA policy is a list of approved sources for each type of resource, such as script-src for scripts, img-src for images, connect-src for requests your scripts make, and frame-src for iframes you embed. The checker flags the patterns that let an injected XSS script run anyway: 'unsafe-inline' with no nonce or hash, 'unsafe-eval', and wildcard sources such as *, https:, or data: in the script rules.\n\n\n\nThe recommended alternative to unsafe-inline is a nonce, a random value your server generates for every response and places in both the header and each script tag. MDN calls nonces the recommended approach for restricting scripts and styles. Because the value changes on every response, the page cannot be fully static HTML. A hash-based policy suits static pages, since the hashes do not change.\n\n\n\nA policy can also do two jobs beyond scripts. The frame-ancestors directive controls who can embed your page, and upgrade-insecure-requests rewrites HTTP subresource requests to HTTPS. The checker's starter policy uses both.\n\n\n\nCSP, Tag Manager, and Third-Party Pixels\n\n\n\nThis is where most CSP projects stall in marketing. A Google Tag Manager container is inline JavaScript that loads gtm.js, so the policy has to allow it. Google's guide to Tag Manager and CSP recommends a nonce on that inline snippet, with a hash as another option and 'unsafe-inline' as a discouraged last resort.\n\n\n\n\nTag Manager will then propagate the nonce to any scripts that it adds to the page.\nGoogle for Developers, Use Tag Manager with a Content Security Policy, updated November 10, 2026\n\n\n\nThat convenience has a side effect worth knowing: scripts added inside the container receive the nonce, so CSP will not stop a tag someone publishes there. Limit who can publish container changes. Google lists other things that break or need extra directives under a policy:\n\n\n\n\nCustom JavaScript variables evaluate to undefined unless the policy allows 'unsafe-eval'. Google recommends custom templates as the alternative.\n\nPreview mode needs extra Tag Manager and Google hosts allowed for scripts, styles, images, and fonts.\n\nEvery tag you add has its own list of required origins. Google publishes them for Google Analytics, Google Ads, Floodlight, Merchant Center, and server-side tagging, and other vendors' pixels each need theirs.\n\n\n\n\nHere is a report-only policy for a site that uses Tag Manager with GA4 and no Google Ads features, built from the directives in Google's guide. Replace the nonce placeholder with a value your server generates per response, and add your own sources before you enforce it.\n\n\n\nContent-Security-Policy-Report-Only: default-src 'self'; script-src-elem 'self' 'nonce-{SERVER-GENERATED-NONCE}' https:\/\/www.googletagmanager.com; img-src 'self' https:\/\/www.googletagmanager.com https:\/\/*.google-analytics.com; connect-src 'self' https:\/\/www.googletagmanager.com https:\/\/*.google-analytics.com https:\/\/*.google.com; frame-ancestors 'self'\n\n\n\nWhen a policy blocks something, Google's Tag Assistant lists the blocked resources under page issues, so you can add what is legitimate and leave out what is not. Report-only mode lets you do that before anything breaks.\n\n\n\nX-Frame-Options and frame-ancestors: Who Can Embed Your Pages\n\n\n\nFraming controls stop other sites from loading your page inside an iframe, the setup behind clickjacking, where a visitor is tricked into clicking something hidden. MDN notes that X-Frame-Options also guards against some cross-site leaks. The frame-ancestors directive in a CSP is the more flexible replacement, and OWASP says it obsoletes X-Frame-Options in browsers that support it. The checker accepts either and gives frame-ancestors priority when both are present.\n\n\n\nThe old header takes DENY, which blocks all framing, or SAMEORIGIN, which allows only your own site. ALLOW-FROM is obsolete and modern browsers ignore it, so use frame-ancestors with an explicit list when you need to allow specific partners. It also has to be sent as a real header, because MDN states that setting X-Frame-Options in a meta tag has no effect. In the Web Almanac data, sites that send the header mostly choose SAMEORIGIN (72.1%) over DENY (24.6%).\n\n\n\nMarketers run into this in two directions. If your landing pages are embedded in a partner portal, a webinar platform, or a page preview tool, a blanket DENY will break the embed, so list those hosts in frame-ancestors instead of dropping the protection. And these headers control who frames you, not what you embed. Putting a YouTube video, a form, or a scheduler on your page is governed by frame-src in your CSP.\n\n\n\nX-Content-Type-Options: Stop File Type Guessing\n\n\n\nWith nosniff set, the browser trusts the declared file type instead of guessing. MDN explains that scripts and stylesheets are blocked when their type does not match, and that browsers will not treat a plain-text response as HTML. That closes a route for attacks in which user-uploaded content gets executed as a page. It is the least risky header to add, and the Web Almanac found it on nearly 50 percent of mobile pages, more than any other security header.\n\n\n\nThe one thing to check first is that your files carry the right type. A script served as text\/plain by a storage bucket or file host will be blocked once nosniff is on, so test marketing assets and tag files that load from outside your main server.\n\n\n\nReferrer-Policy: Share Less Without Breaking Attribution\n\n\n\nWhen a visitor clicks a link or your page loads a resource, the browser can tell the destination where the request came from. Referrer-Policy sets how much of your address that includes. Per MDN, strict-origin-when-cross-origin is the default when no policy is set, so current browsers already behave this way, but older ones may send the full address, including the query string. Setting it explicitly makes the behavior consistent.\n\n\n\nThe marketing effect is mostly good news. With strict-origin-when-cross-origin, other sites see only your domain on a cross-origin click, never your path or query string, so tracking parameters and tokens in your URLs stay private. Your own analytics still get the full address on same-origin navigation. Stricter values change attribution: no-referrer and same-origin stop partner and affiliate sites from seeing your domain as the source of a click, which can break referral reporting on their side. The checker passes those values, so choose them on purpose. At the other end, unsafe-url sends full addresses everywhere, even over HTTP, and fails the check.\n\n\n\nPermissions-Policy: Turn Off Features You Do Not Use\n\n\n\nPermissions-Policy lets a page switch off browser features such as the camera, microphone, geolocation, and payment, for itself and for anything it embeds. Features are open by default, so a feature stays available until you name it. Adoption is low, 3.7% of mobile sites in the Web Almanac, and MDN currently lists the header as not Baseline, so browser support is uneven. The cost of setting it is small, though, and it limits what an injected script or an embedded widget can ask for.\n\n\n\nThe checker's starter value is camera=(), microphone=(), geolocation=(), payment=(), usb=(). Adjust it for your site. A store locator needs geolocation for your own pages, so use geolocation=(self), and a site that uses the browser payment API should not disable payment. The checker accepts any valid policy, but the older Feature-Policy header and its syntax do not count.\n\n\n\nHow to Roll Out Security Headers Safely\n\n\n\nAdding every header at once is how a Friday change turns into a broken checkout. This order moves from the least risky to the most:\n\n\n\n\nTake inventory. Run the checker on every host you serve, and list the tags, embeds, and vendors your pages depend on: tag manager, analytics, chat, forms, video, and payments.\n\nStart with the low-risk headers. Add X-Content-Type-Options, Referrer-Policy, and Permissions-Policy, then check that your marketing files and embeds still work.\n\nDecide who may embed you. Set X-Frame-Options or frame-ancestors, and name any partner or tool that legitimately frames your pages.\n\nSend CSP in report-only mode first. Use Content-Security-Policy-Report-Only, review the violations, add the sources you actually need, and then switch the header name to Content-Security-Policy. MDN describes report-only as a policy that is not enforced but sends violations to a reporting endpoint. The checker gives half credit for report-only until you enforce it.\n\nRamp HSTS in stages. hstspreload.org suggests max-age values of 300 seconds, one week, and one month, with includeSubDomains, waiting out each stage while you watch for broken pages, before moving to a year. Check every subdomain over HTTPS first.\n\nRe-test and keep watching. Run the checker again after any change to your server, CDN, theme, or tag setup, since a new platform or proxy can add, remove, or duplicate headers.\n\n\n\n\nTwo of my other free tools help with this work. The SSL Certificate and Security Contact Checker confirms the certificate chain that HSTS depends on, and the Cookie Consent Scanner checks Referrer-Policy and Permissions-Policy alongside consent and tracker issues.\n\n\n\nCopy-Ready Config Examples\n\n\n\nHeaders can be set at your origin server, at your CDN or edge, or both. The checker shows the fix for each missing or weak header in all three formats, and the examples below combine the usual set. The Content-Security-Policy line is the checker's report-only starter. It allows only your own domain, so add the sources your tags need before you enforce it.\n\n\n\n\n\n\n\nApache needs mod_headers. Put these in your .htaccess file or the VirtualHost. The always keyword sends the header on error responses too.\n\n\n\n<IfModule mod_headers.c>\n Header always set Strict-Transport-Security \"max-age=31536000; includeSubDomains\"\n Header always set X-Content-Type-Options \"nosniff\"\n Header always set X-Frame-Options \"SAMEORIGIN\"\n Header always set Referrer-Policy \"strict-origin-when-cross-origin\"\n Header always set Permissions-Policy \"camera=(), microphone=(), geolocation=(), payment=(), usb=()\"\n Header always set Content-Security-Policy-Report-Only \"default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'self'; upgrade-insecure-requests\"\n<\/IfModule>\n\n\n\nNginx uses add_header in the server block. The nginx documentation says these directives are inherited from the previous level only if the current level has no add_header of its own, so a location block that sets one cache or CORS header will silently drop all of these. Version 1.29.3 added add_header_inherit, which can change that behavior.\n\n\n\nadd_header Strict-Transport-Security \"max-age=31536000; includeSubDomains\" always;\nadd_header X-Content-Type-Options \"nosniff\" always;\nadd_header X-Frame-Options \"SAMEORIGIN\" always;\nadd_header Referrer-Policy \"strict-origin-when-cross-origin\" always;\nadd_header Permissions-Policy \"camera=(), microphone=(), geolocation=(), payment=(), usb=()\" always;\nadd_header Content-Security-Policy-Report-Only \"default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'self'; upgrade-insecure-requests\" always;\n\n\n\nCloudflare sets headers at the edge without touching your origin. Create one Response Header Transform Rule per header. Cloudflare's documentation notes that the rule changes the response sent to visitors, and that rules run in order, so later rules can overwrite earlier ones. Each rule uses these fields:\n\n\n\nRules > Transform Rules > Response Header Transform Rules\nOperation: Set static\nHeader name: X-Content-Type-Options\nValue: nosniff\n\n\n\nRepeat the rule for Referrer-Policy, Permissions-Policy, X-Frame-Options, and the CSP header. For HSTS, use the dedicated setting under SSL\/TLS, Edge Certificates, rather than a transform rule. Cloudflare also offers an Add security headers managed transform, but it sends referrer-policy: same-origin, which strips your domain from outbound referrers, plus the deprecated X-XSS-Protection and Expect-CT headers. Cloudflare warns that it can block resources, so review what it adds before you turn it on.\n\n\n\nCommon Mistakes the Checker Catches\n\n\n\n\nHeaders dropped by a location block. In Nginx, one add_header inside a location block replaces the inherited set. Test the pages that live under those blocks, not just the home page.\n\nThe same header set twice. When an application and a proxy both send a header, the response carries both copies, possibly with conflicting values. OWASP's guidance is to set each header in one layer only. The checker warns on duplicate framing headers.\n\nHeaders placed in a meta tag. The Web Almanac found that about 0.11% of mobile sites tried to set policies in a meta tag that browsers do not allow there, most often X-Frame-Options, X-Content-Type-Options, and Permissions-Policy. Browsers ignore them, and a report-only CSP cannot be delivered this way either.\n\nVersion leaks. The Web Almanac found a Server header on 91.5% of hosts and X-Powered-By on 23.9%. A version number tells attackers which known flaws to try, and it keeps an otherwise perfect site from an A+. Cloudflare's Remove X-Powered-By headers managed transform is a quick fix for that one.\n\nCopying retired headers. X-XSS-Protection is deprecated, and current browsers ignore it. The checker shows it for information only and suggests removing it. Rely on CSP instead.\n\n\n\n\n\nKey Takeaways\n\n\n\n\nThe checker grades HSTS, CSP, framing protection, X-Content-Type-Options, Referrer-Policy, and Permissions-Policy out of 100 points, using the headers on the final page after up to five redirects.\n\nMost sites are exposed. The 2025 Web Almanac found HSTS on 36% of mobile pages and CSP on 21.9%, so a strong grade sets you apart.\n\nCSP is the header that touches marketing. Use a nonce for your Tag Manager snippet, limit who can publish container changes, and run the policy in report-only mode before you enforce it.\n\nRoll out from low risk to high: nosniff, Referrer-Policy, and Permissions-Policy first, then framing rules, then CSP, then HSTS in stages. Treat HSTS preload as a deliberate last step.\n\nSet each header in one place, keep it out of meta tags, and remove version-leaking headers such as Server versions and X-Powered-By to reach an A+.\n\n\n\n\n\n\n\n\n\nWhat Are HTTP Security Headers?They are response headers your server sends with a page to tell the browser how to handle it. They control whether the page must use HTTPS, which scripts and resources may load, whether other sites can frame the page, how much referrer information is shared, and which browser features the page can use.Which Security Headers Should Every Website Have?At a minimum, Strict-Transport-Security, Content-Security-Policy, X-Frame-Options or the CSP frame-ancestors directive, X-Content-Type-Options, Referrer-Policy, and Permissions-Policy. Those are the six this checker grades.How Does the Checker Calculate the Grade?It scores 100 points across the six headers: HSTS 25, CSP 25, framing protection 15, X-Content-Type-Options 15, Referrer-Policy 10, and Permissions-Policy 10. A header earns full points when it is well configured, half when it is present but weak, and none when it is missing or invalid. A is 85 or more, and an A+ also requires that no version-leaking header is sent.Will a Content Security Policy Break Google Tag Manager or Google Analytics?It can if the policy does not allow them. Google recommends a nonce on the Tag Manager snippet, plus allowing its hosts for scripts, images, and connections. Custom JavaScript variables need unsafe-eval unless you switch to custom templates. Start with Content-Security-Policy-Report-Only so you can see what would be blocked before you enforce anything.Should I Use X-Frame-Options or CSP frame-ancestors?Use frame-ancestors if you can, because it supports an allowlist of specific sites and replaces the older header in browsers that support it. X-Frame-Options with DENY or SAMEORIGIN still works as a simple fallback. Do not use ALLOW-FROM, which modern browsers ignore.Is It Safe to Add HSTS Preload?Only if every subdomain you own will support HTTPS for the long term. Preload needs a max-age of at least one year, includeSubDomains, and the preload directive, and removal can take months to reach users. Ramp max-age in stages first, and treat preload as optional.Do Security Headers Affect SEO?Google's page experience guidance points to HTTPS rather than to individual security headers, so they are not a known ranking tactic. They help protect your site from injected scripts and spam, which protects the visibility you already have.Why Do I Not Get an A+ After Adding All Six Headers?An A+ needs all 100 points and no response header that leaks software details. A Server header with a version number, X-Powered-By, X-AspNet-Version, or X-Generator will hold the grade at an A. Remove those at your server or CDN and run the check again.\n\n","publisher":{"@id":"#Publisher","@type":"Organization","name":"Martech Zone","logo":{"@type":"ImageObject","url":"https:\/\/martech.zone\/wp-content\/themes\/mtz-26\/images\/mtz_logo.svg"},"sameAs":["https:\/\/feed.martech.zone","https:\/\/martech.zone\/subscribe\/","https:\/\/refer.martech.zone\/x\/","https:\/\/refer.martech.zone\/linkedin\/","https:\/\/refer.martech.zone\/youtube\/","https:\/\/refer.martech.zone\/apple\/news\/","https:\/\/refer.martech.zone\/instagram\/","https:\/\/refer.martech.zone\/paypal\/","https:\/\/refer.martech.zone\/tiktok\/","https:\/\/refer.martech.zone\/buymeacoffee\/"]},"sourceOrganization":{"@id":"#Publisher"},"copyrightHolder":{"@id":"#Publisher"},"mainEntityOfPage":{"@type":"WebPage","@id":"https:\/\/martech.zone\/security-headers-checker\/","breadcrumb":{"@id":"#Breadcrumb"}},"author":{"@type":"Person","name":"Douglas Karr","url":"https:\/\/martech.zone\/author\/douglaskarr\/"},"image":{"@type":"ImageObject","url":"https:\/\/martech.zone\/wp-content\/uploads\/2026\/12\/http-security-headers-grader-app-glass.webp","width":1200,"height":675}} ```