How Linktary verifies a link
Every Linktary short link is traced to its real destination and risk-scored before it goes live. This article is the complete technical description of that process: what we fetch, what we look for, how we score it, and what each verdict means. We publish this because our verification is the product — and a verification system you can't inspect isn't worth trusting.
Step 1: the bounded chain fetch
When you create a link, Linktary fetches the destination with a strict budget:
- At most 5 redirect hops, following
Locationheaders hop by hop. - 8 seconds total for the whole fetch; slow or unresponsive destinations
- HEAD first, then GET — we try a cheap
HEADrequest and fall back to - 1 MB body cap — we only need the first bytes of a response to sniff
- 50 subrequests max per verification (the platform's safety ceiling for
don't get to stall the pipeline.
GET when the server refuses it.
its real content type.
one operation).
The SSRF guard: what we refuse to fetch
Linktary fetches attacker-chosen URLs, so before every hop — the initial destination, every Location target, every meta-refresh target — the target is screened. This is server-side request forgery (SSRF) protection, and it exists so our verification engine can never be turned into a probe for someone's internal network:
- Private IP literals are refused outright — loopback (
127.0.0.1), - Domain names are resolved and checked — the hostname is resolved over
- DNS pinning — the validated public address is pinned for the
RFC 1918 private ranges (10.x, 172.16.x, 192.168.x), link-local (169.254.x, the cloud metadata range), carrier-grade NAT, multicast, reserved and documentation ranges. IPv6 gets the same treatment, including tunneled forms: IPv4-mapped (::ffff:10.0.0.1), 6to4, and NAT64 addresses are unwrapped and the inner IPv4 address is checked.
DNS-over-HTTPS and every returned address is screened. A domain that resolves to a private address is refused just like a private literal.
connection where the platform allows it, closing the DNS-rebinding window between the check and the fetch.
Two honest limitations we document rather than hide: if the DNS resolver itself is unreachable, the check fails open (the fetch proceeds without pinning) — a resolver outage must not turn legitimate links into CAUTIONs. And pinning is best-effort at the platform layer; the literal-IP deny and resolve-and-check are the guarantees. A refused target is never silent: it produces the private_network_target signal (below), the partial chain stays visible on the trust report, and the verdict is CAUTION. Refusal reasons are logged for the link owner, never served to visitors in a form useful for probing.
Meta-refresh redirects
Phishing kits use <meta http-equiv="refresh"> precisely because naive checkers only follow Location headers. We follow meta-refresh targets too — parsed as markup, never executed as code. They count against the same 5-hop budget and re-enter the SSRF guard like any other redirect.
The fetch never runs on the click path. Verification happens once, at creation — plus whenever the owner explicitly asks for a recheck. When someone clicks your link later, the redirect is a single database read. That's deliberate: the hot path must be fast and deterministic, and it must never depend on a third-party server responding in time.
Step 2: the signal taxonomy
Each fetched chain is scored against four signal families. Every signal has a code, a severity (block / warn / info), and a numeric weight. The weights are what make the verdicts reproducible: the same chain always scores the same.
Chain signals — what the redirect path itself says:
redirect_loop(100, block) — the destination redirects in a loop, atoo_many_hops(20, warn) — 4 or more hops; unusually long chains are across_domain_hop(30, warn) — a redirect jumps to a differenthttps_downgrade(40, warn) — the chain drops from HTTPS to plain HTTP,private_network_target(40, warn) — the destination (or a hop) points
classic evasion pattern.
phishing pattern.
registrable domain mid-chain.
where traffic can be intercepted.
at a private or internal network address. Linktary never fetches those, so the destination could not be verified. The partial chain stays visible and the verdict is CAUTION — refusal is disclosed, never silent.
Host signals — what the domain names say:
ip_literal_host(50, warn) — a raw IP address instead of a domain name.credentials_in_url(30, warn) — the URL embeds login credentialsidn_punycode_host(40, warn) — internationalized-domain lookalike risk.mixed_script_host(40, warn) — the hostname mixes character scriptssuspicious_tld(30, warn) — a top-level domain frequently abused in
(user:password@host): a phishing pattern, and credentials in shared links can leak. The credentials are stripped from the recorded chain before anything is stored — the signal fires, the secret never persists.
(Latin and Cyrillic, say) to mimic a trusted name. This one is checked on the pre-normalization hostname, because URL parsing encodes IDNs — the precise diagnosis wins over the generic punycode signal, never both.
phishing campaigns.
Content signals — what the bytes say (final hop only):
executable_content(100, block) — the destination delivers an executablearchive_content(40, warn) — a downloadable archive file.content_mismatch(30, warn) — the server claims one file type but theexecutable_extension(30, warn) — the final URL ends in an executable
program, the highest-risk content.
bytes are something else (we sniff magic bytes) — a content-spoofing pattern.
file extension.
Domain-age signals — how new the destination is:
new_domain(25, warn) — registered within the last 30 days.young_domain(10, warn) — registered within the last 90 days.rdap_unavailable(0, info) — the registration age couldn't be checked.
Lookup failure is neutral, never blocking.
Threat-intel corroboration comes from URLhaus (abuse.ch): when a (free) abuse.ch API key is configured, the destination URL is submitted to the URLhaus API, and a listing there is a block-strength signal (their entries are human-confirmed malicious URLs, not heuristics). The provider is fail-open by contract — a feed outage, a timeout, or a missing API key contributes zero signals, never an error, and never blocks link creation on its own. Without the key, abuse.ch returns HTTP 401 and the provider is inert; the engine then relies entirely on its built-in signals. The provider seam in the engine stays open for more feeds.
Step 3: score → verdict
The score is the sum of all signal weights. The thresholds are public and fixed:
| Score | Verdict | What the visitor sees |
|---|---|---|
| 100 or more | BLOCKED | The destination never loads. A block page explains why, naming the top signals in plain language. There is no bypass. |
| 40 to 99 | CAUTION | An interstitial shows a destination preview with the reasons for caution. The visitor can proceed only by explicitly confirming. |
| Below 40 | SAFE | A direct 302 redirect, like any short link. |
If the engine itself fails — the destination times out, the network errors, something unexpected breaks — the result degrades to CAUTION, never to an error and never to a silent pass. Link creation never fails because the verification engine had a bad day; the cautious verdict is the default.
Step 4: the trust report
Every verdict is published on a public trust report at linktary.com/v/<code> — no account needed. It shows the verdict badge, the full redirect chain hop by hop, the plain-language explanation of every signal, the score, and when the check ran. Agents get the same data as JSON at /v/<code>/status (canonical) or /v/<code>.json.
The trust report is the point of the whole design. Anyone who receives one of our links — a colleague, an IT admin, a suspicious recipient — can open it and see exactly what was checked, what fired, and why the engine issued the verdict it did. A verification nobody can audit is marketing. Ours is inspectable.
The design principles, summarized
- Verify at creation, never on the hot path. Clicks are a single
- Publish the machinery. Signal codes, weights, thresholds — all
- Fail cautious. Engine trouble is a CAUTION verdict, not an error
- Show your work. Every verdict ships with a public, machine-readable
- Refuse what we can't safely check. Private and internal network
database read. Verification gets a bounded budget and never touches the redirect.
public, all reproducible.
and not a free pass.
trust report.
targets are never fetched — not to verify you, not to verify anyone. The refusal itself is part of the report.
Transparency is the moat. Anyone can build a shortener; the reason to trust ours is that you can read exactly how it thinks. For the question every CISO asks next — what can Linktary see, and what can't it — read The honest crypto design and the /security page.