[ASK] Restrict direct link file access

Cliff Wells cliff at develix.com
Mon Aug 16 14:33:00 MSD 2010


On Thu, 2010-08-12 at 13:44 -0700, antituhan 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;
>     }

location ~ \.exe$ { 
  deny ip.ad.dr.es;
}

Cliff
-- 




More information about the nginx mailing list