What live stream piracy actually looks like
If your stream has value, whether it is a paid concert, an online course, a licensed match or an internal company meeting, someone will try to watch it without permission. You do not need to be a big broadcaster for that to happen. And in the cases we deal with, piracy is rarely a hacker breaking encryption. It is usually one of these five things:
- A copied stream URL. Someone opens the browser's developer tools, copies the .m3u8 address and plays your stream on their own site or in an IPTV app.
- Link sharing. One person pays for access and posts the link in a group chat with a few hundred members.
- Hotlinking. Another website embeds your player, and your monthly transfer pays for their audience.
- Screen recording. An authorized viewer records the screen and uploads the video somewhere else.
- Paywall bypass. The ticketing page hides the player, but the stream URL behind it never changes, so whoever finds it skips the payment.
Start by deciding which of these you want to stop, because each one has a different fix. Protecting a URL is not the same as stopping a paying viewer from recording their screen, and no technology stops someone from pointing a phone at a TV.
Match each threat to the right control
This is the table we go through when a customer asks us to lock down a stream. It saves money, because it shows which layers you need and which ones you would be paying for without a reason.
| Threat | Control that helps | What it does not stop |
|---|---|---|
| Copied stream URL | A token on the playback URL that expires | A viewer recording their own screen |
| Player embedded on other sites | Allowed domains for the player | Someone using the direct URL, which is the token's job |
| Viewers in countries without rights | Country geoblocking | Viewers who hide behind a VPN |
| Paid accounts shared by several people | Login with a session limit on your own site | Screen recording |
| Saved segments replayed elsewhere | Encryption or DRM | A camera pointed at the screen |
| Leaks you need to trace | Forensic watermarking | It identifies the leak; it does not block it |
The layers are not interchangeable: they add up. The right combination depends on what your content is worth and on what your rights contracts require.
Tokens: make copied links stop working
A token turns a fixed address that anyone can share into a link that expires. Instead of publishing the same URL for everyone, your system issues one that carries a signed token, and the streaming server checks it before delivering a single segment.
- Your server generates a token signed with a secret key that only it and the streaming server know.
- The token carries an expiration time and, depending on the system, other conditions such as the viewer's IP or a session ID.
- The player requests the stream with the token in the URL.
- The streaming server validates the signature and the expiration before delivering the video.
- If the token expired, was altered or does not match its conditions, the request is refused.
| Token variant | What it adds | The trade-off |
|---|---|---|
| Time-limited | The link stops working after a set time | A shared link works until it expires |
| Bound to an IP | Only plays from the viewer's address | Breaks when a phone switches from Wi-Fi to mobile data |
| Bound to a browser | Ties playback to one user agent | Easy to spoof: a nuisance, not a lock |
| Signed JWT | A standard format your login system can issue | Needs development on your side |
In practice, a token that lasts as long as the event plus a margin (two to four hours for a typical live event) covers most cases: a link posted in a chat stops playing before it spreads. For a 24/7 channel delivered to partner apps, agree a longer duration with each partner and renew it on schedule.
In XtreamCast this is SecureToken. It protects the stream URL on HLS, LL-HLS, WebRTC and SRT outputs with a duration you configure, so a copied link stops playing when it expires. If you want to see what a stream URL looks like before protecting it, our guide on what an M3U8 file is walks through it.
Allowed domains: keep your player on your own site
Hotlinking is the quietest form of piracy. Another site copies your embed code, its visitors watch your stream and your transfer allowance pays for it. Restricting the domains where the player can load stops that, and it is the first control we turn on for any customer with a public website.
It has a clear limit: domain restriction checks where the player is embedded. It does not identify a person and, on its own, it does not protect the raw stream URL. Test it three ways before relying on it: on your allowed site (it should play), embedded on a test page on another domain (it should not) and with the direct URL in a player like VLC (that case is the token's job).
In XtreamCast, ShieldPower lets the Player Advance™ embedded player load only on the domains you authorize, while SecureToken covers the direct URL. Used together, they close the two most common leaks.
Geoblocking: decide where your stream can be watched
Sometimes the problem is not who watches, but from where. These are the usual reasons to restrict by country:
- Territorial rights. You licensed a match or a film for some countries only.
- Regional pricing. You charge different prices by country and want to limit cross-border access.
- Legal restrictions. Some content cannot be shown in certain territories.
- Market focus. You serve one market and do not want to pay transfer for anyone else.
The server compares the viewer's IP address against a geolocation database and accepts or refuses the request. There are two modes: an allow list, where only the listed countries can play, and a block list, where everyone can play except the listed countries. For rights deals, an allow list with the contracted countries is the safer choice.
Know the limits. A VPN or a smart DNS service changes the apparent location, and IP geolocation can be wrong with some mobile carriers and with recently assigned address ranges. Test from an allowed country and from a blocked one, and combine geoblocking with tokens instead of using it alone. In XtreamCast, country geoblocking is an allow list or a block list that you edit from the panel.
Encryption and DRM, and what XtreamCast does not offer
For content where a leak means real losses, encryption and DRM are the last layers. It helps to separate three things that often get mixed up:
- HTTPS encrypts the connection between server and viewer. Nobody can read the stream in transit, but a viewer who is allowed to play it can still save what they receive.
- HLS with AES-128 encrypts each segment, and the player downloads a key from a URL listed in the playlist. Saved segments are useless without the key, but whoever can request the key can decrypt them, so key delivery needs its own protection.
- DRM (Widevine, FairPlay, PlayReady) adds licenses tied to each device. On devices with hardware-backed DRM, screen recorders usually capture a black frame. It is what film studios and many sports rights holders require by contract.
To be direct about it: XtreamCast does not offer DRM or AES-128 HLS encryption. Delivery runs over HTTPS, and access is controlled with SecureToken, geoblocking and ShieldPower. That combination covers what most churches, schools, companies and production houses need. If a rights holder requires studio-grade DRM by contract, you need a provider that specializes in it, and we would rather tell you now than after you sign. Our guide to DRM video streaming with Widevine and FairPlay explains how it works and what it takes to run.
Logins, tickets and paywalls live on your site
A streaming server delivers video and refuses requests that do not carry a valid token. Selling tickets, managing accounts, connecting single sign-on or limiting how many devices an account can use belong to your website or app, the one that embeds the player.
The most common mistake we see is a login page in front of a player whose URL never changes. The login looks like protection, but anyone who copies the stream address skips it. The fix is to connect both pieces: when a viewer signs in, your site issues a token for that session, and the token expires shortly after the event. That way a shared link dies quickly, and a shared password is limited by your own session rules.
If you are building a paid event or a subscription, our guide on how to monetize live streaming covers the business side. For internal company video, private white-label streaming for business shows how the player, the intranet login and the access controls fit together.
A security checklist by content value
Protection should be proportional to what the content is worth. You do not need DRM to stream a Sunday service, but if you charge for a boxing pay-per-view you need every layer you can get. Start with the basics and add levels as the value grows.
Basic: every stream
- Turn on allowed domains for your player (ShieldPower, in XtreamCast).
- Keep the RTMP or SRT ingest URL and the stream key inside the production team, and never in a shared screenshot.
- Give each crew member their own collaborator access with only the permissions they need, and turn on two-factor authentication for the panel.
- Embed the player only on pages served over HTTPS.
Paid content
- Everything above, plus tokens that expire shortly after the event.
- Country geoblocking if your rights are territorial.
- Watch your statistics during the event for unusual spikes, such as a jump in viewers from a country where you sold no tickets.
- Limit concurrent sessions per account in your login system.
High value: licensed sports, films, premium pay-per-view
- Everything above, plus DRM with Widevine and FairPlay (and PlayReady for Windows and Xbox) through a specialized provider.
- Forensic watermarking that marks each session with an invisible viewer ID, so a leak can be traced back to an account.
- Someone monitoring for pirate copies during the event, with takedown requests ready to send.
- Contracts with penalties for redistribution.
The access controls described here (SecureToken, geoblocking and ShieldPower) are part of the paid video plans, and SecureToken and geoblocking come with every one of them. The full description of each one is on our streaming security page.
Protect your stream where the leaks happen
SecureToken on every output, country geoblocking and a player that only loads on your domains, managed from one panel on paid video plans.