[squid-users] urlpath_regex negative assertions
squid3 at treenet.co.nz
Mon Sep 18 09:40:21 UTC 2017
On 18/09/17 21:04, Antony Stone wrote:
> On Monday 18 September 2017 at 09:43:12, Vieri wrote:
>> I'd like to block access to URLs ending in *.dll except for those ending in
>> acl denied_filetypes urlpath_regex -i denied.filetypes
>> where denied.filetypes contains a list of expressions
> Are the others working?
>> of which:
> You have that regex all on one line?
>> This doesn't seem to work if I try to deny access.
>> eg. an http client can access http://whatever/mriweb_test.dll when it
>> Where's my mistake?
> You need to have each possible matching regex on a separate line in the file.
Also the '\' in '\?' makes it mean exact character match - any special
meaning (like doing a lookahead) is prevented.
More information about the squid-users