how to secure downloading mp3 or flv files in nginx

Weibin Yao nbubingo at gmail.com
Mon Jun 15 13:40:22 MSD 2009


XUFENG at 2009-6-15 16:54 wrote:
> 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()
> 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
>
>   
I think you should write a simple custom handler module.

-- 
Weibin Yao






More information about the nginx mailing list