Re: Deny access to all directory files BUT a certain suffix?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Aug 5, 2012 at 4:43 PM, Daniel Gruno <rumble@xxxxxxx> wrote:
> On 08/05/2012 11:31 PM, Tom Browder wrote:
>> I see lots of examples of denying access to files in a directory with
>> a certain suffix, but I want to deny access to ALL files EXCEPT those
>> with one suffix (.html).
...
> Try <FilesMatch ".+\.(?!html).+$">
> It might need some work, as it will only block files that follow the
> prefix.suffix standard, but it's a working start :)

That seems to have done the trick for my purposes, Daniel!

Thanks very much.

Best regards,

-Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux