9 messages in ru.sysoev.nginxRe: Re: how to secure downloading mp3...
FromSent OnAttachments
XUFENGJun 15, 2009 1:53 am 
Delta YehJun 15, 2009 2:05 am 
Igor SysoevJun 15, 2009 2:10 am 
Szymon KosokJun 15, 2009 2:18 am 
Thanos ChatziathanassiouJun 15, 2009 2:33 am 
Weibin YaoJun 15, 2009 2:39 am 
XUFENGJun 15, 2009 3:07 am 
XUFENGJun 15, 2009 3:09 am 
Kon WilmsJun 15, 2009 8:23 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Re: how to secure downloading mp3 or flv files in nginxActions...
From:XUFENG (xufe@sina.com)
Date:Jun 15, 2009 3:09:58 am
List:ru.sysoev.nginx

We can add one parameter as the 'salt' to encryt what will appear in the key=??
part,not in plain text.

------------------ XUFENG 2009-06-15

------------------------------------------------------------- 发件人:Szymon Kosok 发送日期:2009-06-15 17:18:37 收件人:nginx 抄送: 主题:Re: how to secure downloading mp3 or flv files in nginx

2009/6/15 XUFENG <xufe@sina.com>:

???燨n my php page,I give the url to my mp3 file in this format
http://mp3.example.com/a.mp3?key=time() then this request will go to nginx,can nginx do something like compare the uri
/a.mp3?key=time() with the current time() and if it is 180 seconds ago,403 error
will return or it will rewrite to the normal file /a.mp3

So if you can do it on your php page, there is no problem that someone who wants to leech file do same on his page. This solution is useless.

My 2 cents. :P