HTTP header checkerRead your server's response headers.
Enter a URL, and we'll show every HTTP header the server sends, with explanations. We grade HSTS, CSP and other security headers from A+ to F, and also check caching, compression, X-Robots-Tag and cookie settings.
Security headers grade
We score HSTS, Content-Security-Policy, X-Frame-Options, X-Content-Type-Options, Referrer-Policy and Permissions-Policy, and also look at the Secure, HttpOnly and SameSite attributes of cookies. For missing headers, we give you ready-to-use Nginx and Apache lines.
Caching and speed
We interpret Cache-Control, ETag, Last-Modified and the CDN cache status. We show whether the response is compressed with gzip or Brotli, whether HTTP/3 is advertised, and the time to first byte (TTFB).
SEO headers
We catch an X-Robots-Tag: noindex that removes the page from the index, as well as canonical and hreflang declarations in the Link header. You can also send the request as Googlebot to see what the bot receives.
How to read the results
The result starts by telling you which address's headers were checked. If the address you entered redirects, the tool follows up to 10 redirects and reads the headers from the final address; the status codes in between appear in order below the summary. In other words, you see the headers of the final page, not of your http:// address. To inspect the redirect steps one by one, use the "See the chain step by step" link. If you typed the address without a scheme, like ornek-site.com, the tool tries HTTPS first; if it can't connect, it tries http:// and says so separately.
The summary boxes
Time to first byte (TTFB) is measured with a single request from Röntgen's server and includes DNS, connection and TLS time, so it won't exactly match what your visitors experience. The tool rates up to 800 ms as good, up to 1,800 ms as needing improvement, and anything above that as slow. If you use a CDN, the first request may hit a copy that isn't cached yet and measure slow; look at the cache status line in the findings and run the check once more. The size box shows the page's uncompressed size and, if the server reported it, the compressed transfer size below it; if it says "Uncompressed", the server isn't using gzip or Brotli.
The security grade and the suggested configuration
In the "Security headers" panel, each header shows the points it scored and the maximum it could score; a missing header gets 0 and a weak configuration gets part of the points. For example, if only Content-Security-Policy-Report-Only is present, CSP scores 5 out of 25. The "Suggested configuration" section only gives lines for headers found missing or weak; if the server software is visible in the response, the Nginx or Apache tab is selected automatically. We deliberately suggest the CSP line in Report-Only mode: a policy applied straight away could block the analytics, font or ad scripts your site uses.
Common problems and how to fix them
In Nginx, headers disappear on some pages
By default in Nginx, the add_header lines in a block are only inherited by child blocks that have no add_header lines of their own. If you put the security headers in the server block and add only Cache-Control in a location block, none of the security headers are sent for URLs in that location. Put the headers in a separate file and add it to every block with include. The always at the end of each line makes sure the header is also sent with error responses such as 404 and 500.
# /etc/nginx/snippets/security-headers.conf
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
location /assets/ {
include snippets/security-headers.conf;
add_header Cache-Control "public, max-age=31536000, immutable";
}
The page is unexpectedly noindex
The critical finding "X-Robots-Tag removes the page from the index" catches a noindex that's invisible in the HTML. The source is usually a server rule (add_header X-Robots-Tag in Nginx, Header set X-Robots-Tag in Apache), a plugin setting or a CDN rule. Platforms like Vercel add this header to preview deployments themselves, and a configuration copied from a staging environment can carry it over to the live site. Choose Googlebot as the user agent and run the check again: if the header is only sent to the bot, the problem lies in a plugin or firewall that treats bots differently. After removing the header, request a recrawl of the page with the URL Inspection tool in Search Console.
HTML is never cached, or cached for too long
On PHP sites, a likely source of the finding "HTML isn't cached (no-store)" is sessions: with the default setting, every page that calls session_start() sends Cache-Control: no-store, no-cache, must-revalidate. If you don't start a session on public pages, the page can be kept in a server or CDN cache and TTFB goes down. The opposite is a problem too: if HTML is sent with a max-age longer than a day, your fixes reach visitors days later. Cloudflare doesn't cache HTML by default and shows cf-cache-status: DYNAMIC; that isn't an error.
Text files aren't compressed
In Nginx, gzip on; on its own only compresses HTML; for CSS, JavaScript, JSON and SVG you have to list the types in the gzip_types line. That's why the home page can look compressed while your stylesheet goes out uncompressed; check the URL of your main CSS file too. In Apache, make sure the mod_deflate module is enabled. Brotli needs a separate module in Nginx and mod_brotli in Apache.
Example: the headers of a PHP site
A check run by typing ornek.com.tr returns a 200 response after two redirects (http:// → https:// → https://www.). TTFB 950 ms ("Needs improvement"), security grade C (55/100). In the security headers panel:
- HSTS 25/25, X-Frame-Options 15/15, X-Content-Type-Options 10/10.
- Content-Security-Policy 0/25 and Permissions-Policy 0/10: both missing.
- Referrer-Policy 5/10: the header is missing, so the browser default counts.
- Cookie attributes 0/5: the
PHPSESSIDcookie has noSecureorSameSite.
The findings also include the info note "HTML isn't cached (no-store)" and the warning "The server discloses software versions" for Server: nginx/1.18.0 and X-Powered-By: PHP/8.1.2. What to do:
- In
php.ini, configure the session cookie and hide the PHP version as shown below; addserver_tokens off;to the Nginx configuration. - Add the
Referrer-Policy,Permissions-Policyand Report-Only CSP lines from the Nginx tab of the suggested configuration. The grade rises to B with 80 points. - For a few days, watch for CSP violations in the browser console, add the external sources your site uses to the policy, and rename the header to
Content-Security-Policy. If the policy restricts scripts and doesn't contain'unsafe-inline', the grade becomes A+ with 100 points. - If the home page doesn't need a session, move the
session_start()call to pages such as login and cart; for public pages,Cache-Control: public, max-age=300is enough. - Reduce the two redirects to a single step:
http://ornek.com.trshould go straight tohttps://www.ornek.com.tr. Details are in the redirects guide.
session.cookie_secure = 1
session.cookie_httponly = 1
session.cookie_samesite = "Lax"
expose_php = Off
Frequently asked questions
What is an HTTP header?
With every response, the server sends short lines of information before the page itself: content type, cache duration, compression method, redirect target, cookies and security rules. Browsers and search engine bots process the page according to these headers; visitors don't see them.
How is the security grade calculated?
100 points in total: HSTS 25, Content-Security-Policy 25, framing protection (X-Frame-Options or frame-ancestors) 15, X-Content-Type-Options 10, Referrer-Policy 10, Permissions-Policy 10, cookie attributes 5. 95 and above is an A+, 85 an A, 70 a B, 55 a C, 40 a D, 25 an E, and anything lower an F. A page that doesn't use HTTPS gets a D at most.
What's the difference between X-Robots-Tag and the robots meta tag?
Both carry the same directives, such as noindex and nofollow. The meta tag works only in HTML pages; since X-Robots-Tag is a server header, it can also be used for PDFs, images and other files. If a plugin or CDN rule accidentally adds noindex to the header, the page drops out of the index, and because it isn't visible in the HTML, it goes unnoticed.
Why should I test with the Googlebot user agent?
Some servers, firewalls and caching plugins respond differently to bots: a different status code, different cache headers, or a block. Compare the response to the Googlebot user agent with the one to a browser user agent to see the differences. Since our requests don't come from Google's IP addresses, sites that verify IPs may not treat us as Googlebot.
Learn more about this topic: HTTPS and security headers guide · Technical SEO checklist