I've added a dot in front of <b>*</b>, like this :

<pre>
  location ~ ^/.*(\.exe)$ {
         deny   ip.ad.dr.es;
     } 
</pre>

And still not working :(
<br><hr align="left" width="300">
View this message in context: <a href="http://nginx.2469901.n2.nabble.com/ASK-Restrict-direct-link-file-access-tp5417795p5426732.html">Re: [ASK] Restrict direct link file access</a><br>
Sent from the <a href="http://nginx.2469901.n2.nabble.com/">nginx mailing list archive</a> at Nabble.com.<br>