how to secure downloading mp3 or flv files in nginx

Szymon Kosok szymon at
Mon Jun 15 13:18:37 MSD 2009

2009/6/15 XUFENG <xufengnju at>:
>        On my php page,I give the url to my mp3 file in this format
> 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

More information about the nginx mailing list