if (req.url.ext ~ "(exe|dll|zip)$") {
    error 403;
}
#Here we check for URL extension and 403