Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: How to use secure link module with IP

$
0
0
you have to do something like this:
secure_link $arg_token;
secure_link_md5 $remote_addr; (you may include other vars like user-agent, uri, etc...

the link will be like this:
http://www.domain.com/mp4/file.mp4?token=XXX

XXX is the token (have to be the same as secure_link_md5)
which in my example is md5($_SERVER['REMOTE_ADDR'])

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>