Answer the question
In order to leave comments, you need to log in
Why does Nginx Secure_Link_Module work erroneously?
Hello. I use for video this link encryption config
secure_link $arg_md5,$arg_time;
secure_link_md5 secret_key$remote_addr$arg_time;
if ($secure_link = "") {
return 403;
}
if ($secure_link = "0") {
return 404;
}
In php, this is the script
$secret = "secretkey";
$time = time() + 86400;
$key = str_replace("=", "",strtr(base64_encode(md5($secret.$_SERVER['REMOTE_ADDR'].$time, TRUE)), "+/", "-_"));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question