Forum

wmsauth problem

ach007 2021-07-05 15:23:33 UTC in Paywall: WMSAuth and beyond

Hi , i found this in my error log
nimble-test: NimbleTime, hashvalue or validminutes is null for 194.25.196.100 , signature=[]
why ?
and when i try to play it with vlc
http://IP-address/live/stream1/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9Ny81LzIwMjEgMzoxNToxOCBQTSZoYXNoX3ZhbHVlPURvMjFnb0liQWtpR0VyN2srZXJPT3c9PSZ2YWxpZG1pbnV0ZXM9MzA=
the stream still accessible why ? what's wrong with my setup ?
this is my php code
<?php
$today = gmdate("n/j/Y g:i:s A");
$initial_url = "http://138.197.138.66:8081/live/stream/playlist.m3u8";
$ip = $_SERVER['REMOTE_ADDR'];
$key = "password "; //this is also set up in WMSPanel rule
$validminutes = 15;

$str2hash = $ip . $key . $today . $validminutes;
$md5raw = md5($str2hash, true);
$base64hash = base64_encode($md5raw);
$urlsignature = "server_time=" . $today ."&hash_value=" . $base64hash. "&validminutes=$validminutes";
$base64urlsignature = base64_encode($urlsignature);

$signedurlwithvalidinterval = "$initial_url?wmsAuthSign=$base64urlsignature";

?>

i send an email but no clear answer .....

ach007 2021-07-05 15:25:45 UTC 

when i access the signed url sometimes forbidden and sometimes i can access it http://IP-address/live/stream1/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9Ny81LzIwMjEgMzoxNToxOCBQTSZoYXNoX3Zhb

ach007 2021-07-05 15:40:58 UTC 

my problem is i want to get Forbidden message when i try to access this link
http://IP-address/live/stream1/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9Ny81LzIwMjEgMzoxNToxOCBQTSZoYXNoX3Zh
but in the same time i can play it with a player and thanks in advance ..

Sergei 2021-07-06 04:38:00 UTC 

Hello, ach007.

The "Time, hashvalue or validminues is null for _IP_ " error means the viewer has requested a protected URL without signature.

Have you referred to our WMSAuth FAQ? It covers most WMSAuth errors and questions. Please find it on the below URL.
https://softvelum.com/paywall/faq/
If you will still facing the issue, please launch a ticket at wmspanel.com/help and include a real publicly available URL with the page that runs your code for signature generation and shows the client's IP.

Thank you.

Post a reply


Post a new question

Categories:

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the Privacy Policy. If you want to know more or withdraw your consent to all or some of the cookies, please refer to the Privacy Policy.
By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to the use of cookies.