Knowledge
CDN Leeching and Unauthorized Restreaming
CDN leeching lets a pirate site play your stream from your own CDN, at your cost. How it differs from capture and restream, the traces it leaves in delivery logs, and which fixes sit with the platform.
A pirate service can take a stream it has no licence for in two broad ways. It can capture the picture, re-encode it and serve it from its own servers. Or it can skip all of that and point its player straight at the rights holder's delivery infrastructure, so the legitimate CDN serves the pirate audience. The second is CDN leeching. It costs the pirate almost nothing, often looks better than a capture, and sends the bandwidth bill to the service being exploited.
How leeching works
Most OTT services deliver video as HLS or DASH: a manifest listing short segments, served from a CDN. Access is controlled with a token, usually a signed parameter on the manifest or segment URLs, or a cookie issued after login. Leeching exploits weaknesses in that control.
- Tokens bound to nothing. If a token is valid from any IP address, device or session, it can be copied from one paid account and placed in a public player.
- Long-lived tokens. A token that stays valid for hours or days can be shared widely before it expires.
- Referrer checks alone. Some services only check the Referer header, which a proxy can forge trivially.
- Unencrypted segments. If segments carry no DRM, any player holding the URL can play them.
The pirate site then either embeds the manifest URL directly, so the viewer's browser fetches segments from the legitimate CDN, or places a thin proxy in between that refreshes tokens from a pool of accounts and rewrites the manifest. The proxy version is harder to spot from outside, because the pirate's domain appears in the player while the bytes still come from the rights holder's CDN.
Traces in your own delivery logs
Unlike most piracy, leeching leaves evidence on the rights holder's side. The CDN and origin logs show it to anyone who looks:
- one token or session ID requesting segments from a large number of distinct IP addresses;
- referrer values from domains that are not the service's own apps or sites;
- concurrent playback on one account far beyond what a household would produce;
- requests from data-centre IP ranges, which suggests a proxy fetching on behalf of others;
- traffic from territories where the service is not offered or the content is not licensed.
These patterns tend to appear first around high-demand live events, when a pirate's audience is largest and a leeched stream saves the most effort.
Fixes that sit with the platform
Leeching is mostly closed by engineering, not by notices. The usual measures are binding tokens to a session, device or IP range; shortening token lifetime and re-issuing tokens during playback; enforcing concurrent stream limits per account; protecting segments with DRM so that a URL alone is not enough to play; and rotating keys during long live events. The glossary entries on key rotation and DRM licences describe the mechanisms.
Each measure has a cost, in engineering complexity or in friction for genuine subscribers on unstable mobile connections or several devices. That is why many services tighten controls in stages and watch the logs after each change, rather than switching everything on at once.
When leeching turns into restreaming
Once a service closes the leeching route, determined operators switch to capture: a paid account plays the stream, the output is recorded and re-encoded, and the copy is served from servers the pirate controls. At that point the problem leaves the rights holder's logs. The stream no longer touches the legitimate CDN, so it has to be found where the pirate distributes it: embed sites, IPTV playlists, live features on social platforms and messaging channels.
Enforcement then runs through the hosts and platforms carrying the restream, with notices backed by time-stamped captures. A forensic or session watermark in the original stream lets the service identify the account feeding the capture and shut it, which ends the restream at its source. The difference between abusing a valid token and abusing a shared login is set out in token sharing vs credential sharing.
Splitting the work between teams
In practice the two problems belong to different people. The platform's engineering and security staff own token design and log analysis. An external protection programme handles the restreams found on third-party infrastructure, where the rights holder has no logs and no control. DigiGuardians works on that second part: monitoring streaming sites, social platforms and messaging channels including Telegram, having analysts verify each detection, and sending notices to the services able to take the stream down. The service is described on the Content Protection page.
- Streaming
- Knowledge


