Skip to main content

Flussonic Media Server

Flussonic Token Auth – Secure

🔒 Premium Software Notice
✨ This is a premium-grade software available in its fully unlocked version exclusively by supporting our platform IPTVTools with a Premium Account Upgrade.

🔐 How to Secure IPTV Streams with Flussonic Token Auth (Full Beginner Guide)

Protect your IPTV platform like a pro using Flussonic Token Authentication. In this beginner-friendly tutorial from IPTVTools.io, you’ll learn how to configure token-secured stream access to stop unauthorized sharing and enforce session control.


📌 What is Flussonic Token Authentication?

Token Authentication (also known as Securelink Auth) generates time-limited, signed URLs that only authorized viewers can access. This prevents piracy, restreaming, and gives you control over when and how streams are consumed.


🔐 Why Use Token Auth in IPTV?

  • 🔒 Prevents unauthorized access to content
  • 🌐 Restricts by viewer IP address
  • ⏱️ Limits playback time with expiration
  • 🔁 Stops link sharing or embedding abuse
  • 🛡️ Adds an extra security layer for public streams

📘 Official Reference:

👉 Flussonic Securelink Documentation

Securing access to streams without backend
In this article we will show an example of how authorization can be implemented without writing your own backend.

🧭 When Should You Use Token Auth?

  • You run a paid IPTV or OTT platform
  • You need to enforce session expiration
  • You want to prevent public access to stream URLs
  • You need to validate client IPs for compliance

🛠️ Step-by-Step Guide: Flussonic Secure Token Setup

⚙️ Step 1: Install Flussonic on Your Server

Use our complete offline guide for a clean install of Flussonic version 24.03.

👉 Install Flussonic Offline – IPTVTools.io

Flussonic 24.03 Install Offline
flussonic nulled, flussonic 24.03, offline flussonic, iptv streaming, ott backend, token auth streaming, flussonic cluster

🧩 Step 2: Configure Secure Token in Flussonic

Log into your Flussonic panel and navigate to:
Config → Config Editor

Paste the following basic setup:

# Global settings:
http 80;
rtmp 1935;
pulsedb /var/lib/flussonic;
session_log /var/lib/flussonic;
edit_auth flussonic letmein!;

# Stream templates:
# Template globals currently applies to all streams without templates.
# This will change in future, explicit template usage is recommended.
#template globals {
  on_play securetoken://mysecretkey;
#}


# Ingest streams:
stream ESPN {
  input hls://yourstream.com/index.m3u8;
}

✅ Replace mysecretkey with a complex, private key. This must match what your PHP script will use for generating secure tokens.

Flussonic Auth Token Backend Secure Stream IPTV

🔍 PHP Code Explanation

Variable Description
$key Secret string used to sign and verify the token
$lifetime How long the stream should be available (seconds)
$ipaddr Viewer IP used to validate access
$starttime Token start validity
$endtime Token expiration time
$salt Random value to make each token unique
$hash SHA1 of the above values for security

Copy the following code to any PHP-enabled server: