What Happens Between a URL and the Page You Finally See
You type an address into a browser, press Enter, and a page appears. The address in the bar is different from the one you typed, but the change was quick enough to miss. That ordinary-looking navigation may have crossed an old domain, an HTTP-to-HTTPS rule, a www canonicalization, a content-delivery network and an application login route before any HTML arrived. Each step made a separate HTTP request. Each step could be fast, slow, cached, broken or unsafe.
The same hidden chain sits behind problems that look unrelated. Search engines keep an obsolete URL in their index. A payment provider says a callback redirects too many times. A browser reports that a cookie was blocked. A security scanner says Content Security Policy is missing even though the application configuration contains one. A customer can open a page but an API client cannot. The first useful question in all of these cases is not “what headers did the app set?” It is “what did the final response actually deliver, and how did the request get there?”
The Website Redirect & Security Header Checker answers that question in two parts. It requests each redirect hop separately, then reads the final response as a set of instructions to a browser. This is why the chain and the headers belong in one report: a perfect policy on the wrong response does not protect the page the visitor finally receives.
A redirect is another request, not an address-bar edit
An HTTP redirect response has a status code and a Location header. The browser receives it, resolves the destination, and makes another request. Status 301 and 308 describe a permanent move. Status 302 and 307 describe a temporary one. Status 303 tells a client to retrieve the destination with GET, which is especially useful after a form submission. History and client behaviour have blurred some of the differences, but every one of them creates another network round trip.
Consider an old campaign link:
http://old.example.test/sale → 301 https://old.example.test/sale → 302 https://www.example.test/offers/winter → 200 final page
That is two redirects and three requests. On a nearby server the overhead may be barely noticeable. On a mobile connection, each new host can require DNS resolution, a TCP connection and a TLS handshake before the next small response arrives. A chain of five “harmless” rules can become a visible pause. It can also become fragile: every intermediate host and certificate must remain available for the old link to work.
Redirect destinations do not have to be complete addresses. A server may return Location: /login, Location: ../new/ or Location: ?language=en. These values are resolved against the address that produced them. A useful tracing tool therefore cannot merely print the header; it has to construct the next address using the same relative-URL rules a client uses. It also has to remember where it has been. If A redirects to B and B redirects to A, the chain is a loop, not an invitation to keep requesting forever.
Why redirect chains grow by accident
Most long chains are not designed as chains. They are independent rules owned by different layers. A domain registrar forwards the old brand. A load balancer upgrades HTTP to HTTPS. A CDN adds www. The web server normalizes a trailing slash. The application changes an old route to a new route. Each owner sees one sensible rule; the visitor sees all of them in series.
Migrations make the pattern worse. Suppose old.example first moved to www.old.example, later moved to new.example, and then reorganized /products/42 as /catalog/widget. Keeping every historical rule may produce a tour through the company’s infrastructure history. The better rule at the oldest entry point sends the visitor directly to the current canonical address.
Protocol changes deserve special attention. An HTTP-to-HTTPS redirect is expected. The reverse is an HTTPS downgrade: the visitor began with an encrypted connection and was sent to an unencrypted destination. A later hop back to HTTPS does not erase that plain-HTTP request. Query parameters, referrer information and cookies that are not marked Secure may already have crossed it. The checker flags the downgrade at the step where it occurs rather than judging only the final address.
Status codes can also expose a broken chain. A redirect without a Location header gives the client nowhere to go. A chain that finishes on 404 has successfully navigated to a missing page. A 500 final response is not repaired by the fact that the previous hops were correct. That is why the final status sits beside the redirect count in the report.
The final headers are a browser’s rule sheet
Once the chain reaches a page, response headers tell the browser how to handle it. Some describe the representation—content type, length, caching and encoding. Others impose security boundaries. They do not fix unsafe application logic, but they can reduce what an injected script, malicious frame or accidental cross-origin request is able to do.
Content-Security-Policy, usually shortened to CSP, is the broadest of these controls. It can restrict scripts to the site itself, disallow plugins, limit forms and connections, and decide which parents may frame the page. A policy in Content-Security-Policy-Report-Only is a rehearsal: violations can be reported, but the browser does not block them. Report-only mode is useful while deploying a policy, but it should not be mistaken for enforcement.
Strict-Transport-Security, or HSTS, is sent over HTTPS. It tells a browser to replace future HTTP attempts with HTTPS before making a network request. Its max-age decides how long that memory lasts. A few minutes can test the mechanism; months are needed for a durable production policy. The checker treats 180 days as its useful threshold and reports a shorter value separately. The optional includeSubDomains and preload choices require more operational care because they extend the promise beyond one host.
Framing protection prevents another site from placing a sensitive page inside a frame and tricking a visitor into clicking it. Modern CSP expresses this with frame-ancestors. The older X-Frame-Options header remains common. A page needs one coherent mechanism; it does not earn extra protection merely by repeating both.
X-Content-Type-Options: nosniff tells browsers to respect the declared content type rather than guessing that a response is executable. Referrer-Policy decides whether outgoing requests reveal the full current address, only its origin, or no referrer. Permissions-Policy controls access to features such as camera, microphone and geolocation. These policies solve different problems, so a generic “security headers present” badge is less useful than a named finding for each one.
Cookies and CORS need context, not a checkbox
A Set-Cookie header can attach several attributes. Secure limits transmission to HTTPS. HttpOnly prevents page JavaScript from reading the cookie. SameSite controls when it accompanies cross-site navigation or requests. Current browsers require Secure when SameSite=None is used; without it, the cookie is rejected rather than merely weakened.
Not every cookie should be HttpOnly. A user-interface preference intentionally read by JavaScript cannot be. Session identifiers and authentication tokens are different, which is why the checker uses session-like names to focus that warning instead of declaring every JavaScript-readable cookie a defect. Likewise, a missing SameSite value may receive a browser default, but an explicit value makes the intended behaviour portable and reviewable.
CORS—Cross-Origin Resource Sharing—controls which web pages may read a response with browser JavaScript. Access-Control-Allow-Origin: * is appropriate for many public resources and APIs. It is not automatically an exposure. Credentials change the equation: browsers do not allow the wildcard origin together with credentialed access. A response that sends both is internally inconsistent, so the report marks the combination as an error.
This is also why the tool’s grade is deliberately mechanical. Errors subtract twenty points and warnings subtract seven. That makes two runs easy to compare, but the number does not know whether a page is public, whether it processes payments, or whether a feature needs to be embedded by partners. The named findings and raw header values are the evidence; the grade is a compact index.
A worked example through three configuration layers
Imagine a team checking http://shop.example.test/account. The first response is HTTP 301 with a destination on HTTPS. The second is HTTP 302 from shop to www. The final response is HTTP 200. The chain itself is functional, but the first rule could send directly to the final host and remove one request.
The final response contains X-Content-Type-Options: nosniff and Referrer-Policy: strict-origin-when-cross-origin. It lacks HSTS and CSP. Its session cookie is Secure and HttpOnly but does not state SameSite. The report therefore records the successful final status and HTTPS destination, green findings for MIME sniffing and referrer policy, warnings for HSTS, CSP, framing and SameSite, and an informational note when a Permissions Policy is absent.
The team opens the application configuration and finds CSP already present. That does not make the report wrong. A reverse proxy may be replacing the header set, a CDN response-header rule may remove it, or the account route may be served by a different application. The final header table gives them the delivered value set. Checking the same origin through the linked SSL Certificate Checker and DNS Lookup then separates HTTP policy from certificate and name-resolution issues.
After the proxy configuration is corrected, the team runs the original address again. The copied link retains that starting address, so the new report follows the same route. A direct HTTP-to-final-HTTPS redirect, enforced CSP, HSTS and explicit SameSite remove the earlier warnings. This repeatable before-and-after check is more useful than reading one application config file because it covers the path the outside request actually takes.
How to investigate a bad result
Start with the chain. If it loops, list the owner of each hop: registrar, CDN, load balancer, web server or application. Two layers often disagree about the canonical scheme or host. If the chain is merely long, rewrite the earliest rules to target the current final address. Keep permanent redirects for true moves and temporary redirects for state that may change.
Then address transport. The final page should normally be HTTPS, and no HTTPS hop should downgrade to HTTP. Use the certificate checker when HTTPS itself fails; response headers cannot compensate for an expired certificate or incomplete chain.
Finally review policies against the page. Begin CSP in report-only mode if an established application loads resources from many places, then enforce it after violations are understood. Add HSTS only after HTTPS works across every covered host. Decide framing, referrer and permissions behaviour deliberately. Apply Secure, HttpOnly and SameSite according to each cookie’s role. Re-run the external address after every infrastructure layer has deployed.
A browser navigation looks like one action because browsers hide the plumbing. Debugging becomes much easier when that action is expanded back into its requests and responses. The redirect chain explains where the visitor went. The final headers explain what the browser was told to permit. Put together, they show the configuration that actually reached the network—not merely the configuration someone intended to ship.