On Fri, Aug 13, 2010 at 3:44 AM, antituhan <dewanggaba@gmail.com> wrote:
> Hi, Could nginx restrict direct link access / hotlink access to specified
> file/extension ?
> I try to write the rules like this :
>
> location ~ ^/*(\.exe)$ {
> deny ip.ad.dr.es;
> }
>
> But nothing happen, the files still can be downloaded by denied ip address.
> Somebody help me please :)
at least, you forgot a dot.
location ~ ^/.*(\.exe)$ {
deny ip.ad.dr.es;
}
(note that I'm not too familiar with deny directive)
--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx