Welcome to World of IPTV

With

+23k members
+11k threads
+106k posts

we are the most popular IPTV community on the web. 

IMPORTANT NOTE:
WE HAVE RECENTLY NOTICED THAT TOO MANY DOUBLE FAKE ACCOUNTS ARE CREATED IN THE PAST.
TO PREVENT THIS ISSUE THE DECISION WAS MADE THAT IN THE FUTURE A ANNUALLY FEE 20 EURO WILL BE RAISED FOR NEW MEMBERSHIPS.

Join now to the World of IPTV

Forum Rules

Before you start, check out the forum rules first

Account upgrade

Upgrade your account to get access to full features

Advertising

Would you like to place your advertisement with us ?

Resources Manager

Hundreds of IPTV scripts and apps are available for download

Protect streams with a small php script

zeri

Extended Member
Ext. Member
Joined
Oct 2, 2019
Messages
34
Reaction score
110
Points
44
Location
bh
Hi folks

not sure if you need this however i made a small php auth script for stream authentication on flussonic

just create a file in /home/ and add password which will be used for authentication.

scriot is below, if you have any questions let me know

in order to authenticate just add ?token=your password in the end of the stream line (regardless of type)


<?php
$get = print_r($_GET, true);
$token = $_GET["token"];
if(!$token || !strlen($token)) {
header('HTTP/1.0 403 Forbidden');
error_log("No token provided", 4);
die();
}

$tokens = array();
$contents = explode("\n", file_get_contents("/home/auth.txt"));
foreach($contents as $line) {
if(strlen($line) > 3) {
$parts = explode(":", $line);
$tokens[$parts[1]] = $parts[0];
}
}


if($tokens[$token]) {
header("HTTP/1.0 200 OK");
header("X-UserId: ".$tokens[$token]."\r\n");
header("X-Unique: true\r\n"); // Turn this on to protect from multiscreen
} else {
header('HTTP/1.0 403 Forbidden');
}
?>
 
Last edited:

dogstyle007

Extended Member
Ext. Member
Joined
Nov 29, 2019
Messages
82
Reaction score
514
Points
94
Location
Africa
i really don't understand, can you please explain for me clarification?
 

zeri

Extended Member
Ext. Member
Joined
Oct 2, 2019
Messages
34
Reaction score
110
Points
44
Location
bh
pretty simple you need a web server and ph, place the content in the web root folder for example /var/www/auth.php

in flussonic put external authentication url to http://yourserver/auth.php

create a file on the web server in /home/auth.txt in which you put the username or token for authentication

when pulling stream you add ?token=somepassword on the end otherwise it wont work..
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

dogstyle007

Extended Member
Ext. Member
Joined
Nov 29, 2019
Messages
82
Reaction score
514
Points
94
Location
Africa
pretty simple you need a web server and ph, place the content in the web root folder for example /var/www/auth.php

in flussonic put external authentication url to http://yourserver/auth.php

create a file on the web server in /home/auth.txt in which you put the username or token for authentication

when pulling stream you add ?token=somepassword on the end otherwise it wont work..
Still haven't figured it out... I'm using flussonic 4.5.18 will this work with it?
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

zeri

Extended Member
Ext. Member
Joined
Oct 2, 2019
Messages
34
Reaction score
110
Points
44
Location
bh
lol
this example is in the documentation

Right, isnt a forum to share cross knowladge? did I take any credit? I just put it here cause I think that not everyone runs around all sites and searchses for help.
 

Xpert007

Extended Member
Ext. Member
Joined
Oct 26, 2020
Messages
34
Reaction score
15
Points
19
Location
Morocco
Hey, i want to know if theres any script to protect my streams on xtream ui panel
 

ChickenWarrior

Extended Member
Ext. Member
Joined
Sep 23, 2019
Messages
510
Reaction score
925
Points
104
Location
USA
Hey, i want to know if theres any script to protect my streams on xtream ui panel
The panel itself… if a user is leaking your streams etc… then that’s your issue lol!

Limit users to certain IPs and user agents etc…
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
shape1
shape2
shape3
shape4
shape5
shape6
Top
AdBlock Detected

We know, ad-blocking software do a great job at blocking ads. But our site is sponsored by advertising. 

For the best possible site experience please take a moment to disable your AdBlocker.
You can create a Account with us or if you already have account, you can prefer an Account Upgrade.

I've Disabled AdBlock