tags:

views:

363

answers:

1

Hello,

I want to block a particular file extension

acl mp3_ext url_regex s-i *.mp3

Where .mp3 is the file extension

Thanks Jean

A: 

Add the following below your line:

acl mp3_ext url_regex -i \.mp3$
http_access deny mp3_ext all
pug
but when you hit service squid restartit throws up an error on acl mp3_ext url_regex s-i *.mp3
Jean
I have edited the answer to show the correct acl rule.
pug
nope it does not work, throws up :Invalid preceding regular expression
Jean
Which version of squid are you using? I have tried this with Squid 2.7 and it works fine. Make sure your rule is exactly as I have given in the answer.
pug