Skip to content

Tune detection ​

Bitstream gives every line two scores from 0 to 100 once a minute: one for restreaming and one for VOD theft. Each sign adds points when it goes past your limit. This guide shows how to change the limits and what happens at each score.

Open Logs > Settings > Detection.

What happens at each score ​

Both detections share the same actions:

SettingDefaultWhat it does
Notify at60The line shows up as flagged, and admins get a notification.
Mark at80The line is marked as a likely abuser.
Disable automaticallyoffTurn the line off when it stays at or above Mark at.
After hours6How long the score must stay high before the line is turned off.

Start with automatic disabling off. Watch the flagged lines for a week, clear the false ones, and turn it on only when you trust the scores.

Lines marked as restreamers on the line page, and lines you Allow, are never flagged.

Restream signs ​

SignPointsDefault limit
The player is a server tool (ffmpeg, VLC library, curl, wget, scripts)25
The IP belongs to a datacenter or hosting company25
One channel watched almost all day2020 hours in 24
Many live channels at the same time203
Many different IPs105 in 24 hours
Very long sessions on average104 hours
HLS pulled by a server tool10
IPs shared with other lines15

A family that watches TV in the evening on two phones scores close to 0. An ffmpeg box in a datacenter that pulls five channels day and night scores 90 or more.

VOD theft signs ​

These work with direct source too. With direct source the movie file comes from your source, not from your nodes. But every play still goes through the panel first, and the panel answers with the source address. Bitstream logs that moment: the line, the movie, the IP, the player, and whether it asked for a byte range. It also logs the player API calls that list and describe movies.

SignPointsDefault limit
Many different titles in one hour2520
Many different titles in 24 hours1560
Titles opened in id order2510 in a row
Titles opened very fast one after another1530 seconds apart
Many movie and series info calls15100 in one hour
Many full movie or series lists1520 in 24 hours
Many different IPs opening movies104 in 24 hours
A download tool (curl, wget, aria2, yt-dlp and more)30
A datacenter IP15
Many connections to one title at the same time (parallel parts)204 at once. Fast seeking in a player does not count.
A very fast and large transfer (movies sent by your nodes only)20500 MB at 20 Mbit/s

Seeking in a movie opens it again with a new byte range. Bitstream counts titles, not opens, so seeking never adds points.

Stop a downloader ​

  • VOD opens per hour caps how many different movies and episodes one line can open in an hour. Above it, the player gets "too many requests" for a few minutes. 0 turns it off. 30 is a safe start: nobody watches 30 movies in an hour.
  • Signed source links make the direct source address expire. Add a rule for your source host with the HMAC template your CDN uses, or with S3 presigning. A copied link then stops working after the time you set.
  • If theft goes on, turn off direct source for that category. Movies then go through your nodes, and the fast transfer sign starts to work too.

Datacenter list ​

Bitstream knows the big cloud and hosting companies by their network number (ASN). Add more in Hosting ASNs. The ASN of an IP comes from your GeoIP database, see IP location.

Check a change ​

After you change a limit, open the detection list and sort by score. The next pass runs within a minute. Open a few lines and read the evidence. Check that the new limit catches what you want and nothing more.

Bitstream documentation