I installed wmspanel without any problems after that i wanted hotlink protection.
i used the php code snippet from the samples provided. My password in that snippet is the same as in wmspanel. Dates of the stream and webserver and time is the same.
I have the hotlinking protection enabled on _definst_ and when i go to the website the correct wmsauth url loads but no video. In wmspanel it says the following : we cannot find hash match. Check signature and wowza wmsauth settings. I checked it 10000x now and everything is correct. Right instance , right password, right date and time and i still get this error.
When i disable wmsauth stream plays fine.
This is the php code used and need i fill in the remote address my self or is it correct this way as well.:
<?php
$today = gmdate("n/j/Y g:i:s A");
$ip = $_SERVER['REMOTE_ADDR'];
$key = "mypassword";
$validminutes = 20;
$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);
?>