· Updated
Understanding URL Redirect Chains
A single shortened link can bounce you through five different servers before you arrive anywhere. Learn what redirect chains are and why they matter for security.
When you click a link, your browser rarely goes directly to the final destination. Instead, it follows a series of HTTP redirects — a chain of hops from one server to another — before the page finally loads. Most of the time you never notice. But understanding redirect chains is important for security, performance, and privacy.
What is an HTTP redirect?
An HTTP redirect is a server's way of saying "the content you want is at a different address." The server responds with a special status code and a Location header pointing to the new URL. Your browser then automatically requests that new URL.
The most common redirect status codes are:
- 301 Moved Permanently — the resource has permanently moved; browsers and search engines cache this
- 302 Found — a temporary redirect; not cached by default
- 303 See Other — redirect to a different resource, typically after a form submission
- 307 Temporary Redirect — like 302 but preserves the HTTP method (POST stays POST)
- 308 Permanent Redirect — like 301 but preserves the HTTP method
A typical redirect chain
A shortened link might follow a chain like this:
https://bit.ly/3xK9mPz→ 301 redirect →https://brand.com/go?cid=campaign123→ 302 redirect →https://www.brand.com/product/widget?utm_source=email→ 200 OK (final page)
Three hops is common. Advertising networks and affiliate tracking systems can produce chains of five, six, or more hops.
Why long chains are a security signal
Legitimate websites rarely need more than two or three redirects. A chain with five or more hops can indicate:
- A cloaking technique — showing different content to crawlers than to real users
- Multiple affiliate or tracking intermediaries obscuring the final destination
- A malicious redirect chain that tries to bypass security tools
CheckShortlink flags chains with five or more hops as a warning signal in its risk scoring.
Domain-hopping as a red flag
When a redirect chain passes through three or more completely unrelated domains, that is a strong signal of suspicious activity. A legitimate marketing redirect might go from a shortener to a tracking domain to the real destination — but a chain involving five different unrelated domains deserves close scrutiny.
Client-side redirects
Some pages redirect visitors not via HTTP headers but using:
- meta refresh:
<meta http-equiv="refresh" content="0;url=..."> - JavaScript:
window.location = "..."orlocation.replace("...")
These cannot be fully traced without executing the page in a browser. CheckShortlink detects the most common patterns and flags them with a note, but cannot guarantee it has traced every hop in a JavaScript-heavy redirect chain.
Performance impact
Each redirect adds a network round-trip — typically 20–200 ms depending on the server's location. A chain of five hops can add up to a full second of latency before the page even starts loading. This is one reason why website performance guides recommend minimising redirects.
How CheckShortlink handles redirect chains
Our resolver follows up to 10 redirect hops per request, with a 5-second timeout per hop and a 20-second total budget. It validates every hop's URL for SSRF safety before following it, detects redirect loops, and captures the HTTP status code and server header for each step.