SojournWeb APIs Free trial key

Free tools / Security headers checker

Security headers checker

Enter a website address. You get a grade from A to F for its HTTP security headers, a fix for each gap, and the status of its HTTPS certificate.

Free, no sign-up. 5 checks an hour per tool. Public websites only.

What security headers do

Every web page arrives with a set of response headers, small instructions the server sends before the page itself. A group of them switch on protections that are already built into every modern browser: refuse to load over plain http, only run scripts from trusted places, never let another site hide the page in a frame, and stop guessing file types. A site that sends none of them still works, which is why they are so easy to forget. This checker reads them from one response and gives the site a grade from A to F.

HSTS and HTTPS

Strict-Transport-Security tells the browser to use only HTTPS for the site for a set time. Without it, a visitor on a hostile network can be steered to a plain http copy of the site before the redirect happens. A max-age of 31536000 seconds, one year, is the usual target. The checker also opens a connection to the site and reports whether its certificate is valid and how many days remain before it expires, because an expired certificate shows visitors a full-page warning.

Content Security Policy and framing

The Content-Security-Policy header lists where scripts, styles, images and frames may come from. A good policy limits the damage of an injected script, one of the most common web attacks. A policy that allows unsafe-inline scripts or any host at all blocks much less, so the checker marks that as weak and awards half the points. X-Frame-Options, or the frame-ancestors part of the policy, stops other sites from placing yours inside an invisible frame to trick visitors into clicking, a trick called clickjacking.

The smaller headers

X-Content-Type-Options set to nosniff stops browsers from deciding that a file is a script just because it looks like one. Referrer-Policy controls how much of the address visitors carry along when they click a link to another site, which matters when addresses contain private details. Permissions-Policy switches off browser features, such as camera or location, that the page never uses. Cross-Origin-Opener-Policy keeps the page apart from windows opened by other sites, which helps pages that handle sensitive data.

Headers that tell too much

Headers such as Server: Apache/2.4.41, X-Powered-By: PHP/8.2 or X-AspNet-Version name the software behind a site and its version, which helps an attacker choose known exploits. The checker lists them and takes a few points off. Remove the header, or at least the version number, in the web server or framework settings.

Using the grade

Treat the grade as a short to-do list. Add the missing headers one by one, starting with HSTS and nosniff, which rarely break anything, and test a Content Security Policy in report-only mode first. Then run the check again. To see what the site is built with, use the CMS detector, and to find dead links on the same page, use the broken link checker.

Questions

What are HTTP security headers?

Instructions a website sends with each page that tell the browser to switch on built-in protections: only load over HTTPS, only run scripts from trusted sources, never show the page in another site's frame, and so on. They cost nothing to send and block whole classes of attacks.

How is the grade calculated?

Each header is worth a fixed number of points: HSTS 20, Content-Security-Policy 25, clickjacking protection 15, nosniff 15, Referrer-Policy 10, Permissions-Policy 10 and Cross-Origin-Opener-Policy 5. A header that is set but weak earns half. Headers that reveal your server software take a few points off, and a site without HTTPS or with an invalid certificate is capped. The result page lists every check with its points.

Is this a full security scan?

No. It reads the headers of one response and the HTTPS certificate. It does not test for vulnerabilities, so a good grade does not mean a site is secure, and a poor one does not mean it has been hacked. It is a quick check of the cheap protections that are easy to forget.

Which headers does it look at?

Strict-Transport-Security, Content-Security-Policy, X-Frame-Options (or the frame-ancestors directive), X-Content-Type-Options, Referrer-Policy, Permissions-Policy and Cross-Origin-Opener-Policy, plus Server, X-Powered-By and X-AspNet-Version for information the site gives away.

Is the security headers checker free?

Yes, 5 checks an hour without an account. If you want to run the check from code or in bulk, a free trial key gives you 500 API calls.

Run these checks from your own code

Every free tool here is one call to the Sojourn API. A trial key gives you 500 free API calls on the SEO audit, the white-label PDF report, link previews, the crawler, email checks and screenshots. No card needed.

Get 500 free API calls See the APIs

Trial
500 calls, one key per email address, straight away on the sign-up page.
Full audit
Adds robots.txt, sitemap, a broken-link check and rendering in a real browser. See a sample report.
Plans
Monthly plans with more calls are on the pricing page.