how to secure downloading mp3 or flv files in nginx

Igor Sysoev is at rambler-co.ru
Mon Jun 15 13:11:09 MSD 2009


On Mon, Jun 15, 2009 at 05:05:31PM +0800, Delta Yeh wrote:

> Please refer to secure_link module

No, ngx_http_secure_link has no timestamp information, it's just for
URL validating.

> 2009/6/15 XUFENG <xufengnju at sina.com>
> 
> > Hi all,
> >
> >        Can nginx achieve this goal?
> >
> >        On my php page,I give the url to my mp3 file in this format
> > http://mp3.example.com/a.mp3?key=time()<http://mp3.example.com/a.mp3?key=time%28%29>
> > 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
> >
> > Thanks in advance.
> > --------------
> > XUFENG
> > 2009-06-15
> >
> >
> >
> >

-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list