Technical reference
HTTP Inspector technical details
This reference explains exactly how the HTTP Inspector runs: what it requests, how it follows redirects, how the page it lands on is graded, and the limits and privacy rules it keeps to. It is written for administrators who want to reproduce a result by hand.
How an inspection runs
- The page sends the URL and the kind of visitor to /api/tools/http-inspector. A URL without a scheme starts at https://.
- The target is checked first. Private, loopback, link-local and cloud metadata addresses, single-label names and internal suffixes such as .local, .internal and .lan are refused, as are user names and passwords in the URL and ports other than 80, 443, 8080 and 8443.
- The URL is requested with redirects turned off, so each response can be recorded. A Location header is resolved against the current URL and followed, up to 10 redirects. Every hop is checked against private addresses and the allowed ports again, since a public site can redirect anywhere.
- At the same time, when you entered an https:// URL, the same host and path are requested over plain http:// to see whether that is sent on to HTTPS. That request stops at the first https:// address without fetching it.
- The last response, if it is HTML, is read (up to 600 KB) for forms and scripts, then graded. Nothing is stored.
One code base with Security Posture
The redirect follower lives in one shared module that three features use: the HTTP Inspector, Zone Analyzer’s HTTP Status Code Verification, and the http:// to https:// check of the Security Posture Website Application Security card. The grade comes from the card’s own findings and the active Security Posture scoring model, so the Inspector shows the grade the card would give that page, with the same point deductions and the same support articles.
What is sent
| Visitor | User-Agent |
|---|---|
| Browser | A current desktop Chrome on Windows |
| Our bot | DNSPanopticon/1.0 (+https://dnspanopticon.com) |
Both send Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 and Accept-Language: en-US,en;q=0.9. Requests are GET, without cookies, from Cloudflare’s network, so they come from a Cloudflare address in the data center nearest whoever handled your request, not from your own address.
How failures are handled
- A connection that drops before any answer is tried once more. Timeouts, refused connections, DNS and TLS failures are not, since they fail the same way.
- When an https:// URL gets no answer at all, the same URL is tried over http://, and the result says so.
- When a redirect leads to a host that does not answer, the error names that step, and the steps that did answer are still shown.
- The whole inspection stops after 15 seconds; the http:// check after 6.
What is graded
The final response is graded only when it is not an error (status below 400). The checks are:
| Check | Passes when |
|---|---|
| HTTPS | The final page is served over https:// |
| http:// redirect | Plain http:// is sent on to https:// |
| Strict-Transport-Security | max-age is at least 15552000 seconds (180 days) |
| Content-Security-Policy | Set, and it neither allows inline scripts without a nonce or hash nor scripts from any site |
| Framing | CSP frame-ancestors limits framing, or X-Frame-Options is DENY or SAMEORIGIN |
| X-Content-Type-Options | nosniff |
| Referrer-Policy | Set to a policy that does not send full URLs to other sites |
| Cookies | Cookies on an HTTPS page are Secure, and session-like cookies are HttpOnly |
| Server details | Server and X-Powered-By don’t name exact versions |
| Page content | No http:// scripts or forms on an HTTPS page, unless CSP upgrades them |
Each failed check costs the points the active scoring model sets for its severity, and the card’s score is 100 minus those points, capped as the model caps the card. Cookies set by the site’s own redirects count, as a browser would keep them.
Limits and privacy
| Limit | Value |
|---|---|
| Inspections per visitor | 60 an hour and 300 a day |
| Redirects followed | 10 |
| Page read for grading | The first 600 KB of HTML |
| Headers shown per response | 80, each value up to 4 KB |
| Timeouts | 15 seconds for the inspection, 6 for the http:// check |
The URL you inspect is requested by DNS Panopticon’s servers; your IP address and cookies are never sent to it. Cookie values in responses are hidden before the result reaches your browser. Results are not stored.
Reproducing a result by hand
| Command | Matches |
|---|---|
| curl -sSI -L --max-redirs 10 https://example.com/ | The redirect chain and each response’s headers (HEAD, so a few servers answer differently) |
| curl -sS -o /dev/null -D - -L -A "DNSPanopticon/1.0 (+https://dnspanopticon.com)" https://example.com/ | The same as our bot, with GET |
| curl -sS -o /dev/null -w "%{time_starttransfer}\n" https://example.com/ | Time to the first byte of one response |
| (Invoke-WebRequest https://example.com/ -MaximumRedirection 0 -SkipHttpErrorCheck).Headers | One response’s headers from Windows PowerShell 7 |
Copy as curl on a result gives the first command with the same User-Agent filled in.
FAQ
Why are only some ports allowed?
So the tool can’t be used to probe arbitrary services. 80, 443, 8080 and 8443 cover nearly every public web server.
Why don’t my times match my browser?
The requests come from Cloudflare’s network, not your connection, and each one opens a fresh connection with no cache. Compare runs with each other rather than with your browser.
Does it run JavaScript?
No. Like the Website Application Security card, it reads the HTML the server sent. A redirect made by JavaScript or a meta refresh is not followed.