[ASK] Restrict direct link file access

Cliff Wells cliff at develix.com
Wed Aug 18 05:53:28 MSD 2010

On Tue, 2010-08-17 at 17:38 -0700, antituhan wrote:
> If I put the deny rules on a root directive, the rule will blocked all
> access. 

Not a root location, a root *directive*:


Since you now get 404's for authorized clients, then it appears you are
not properly setting your root for this location.

> But I just want to block the specified extension. :( I've tried many
> regular expression, but I can't find the right one :(


More information about the nginx mailing list