What happened is this: acl magic_words2 url_regex -i .exe OR .mp3 OR .bat OR ...
no_cache deny QUERY AND magic_words2 AND OTHERACL AND ... so it will only work if you have something like "http://www.exemple.com/ cgi-bin/filename.exe" or "http://www.exemple.com/ action.php?file=foo&name=bar" or something lilke that. (\? escape the special meaning of the ?). What you want is: acl QUERY urlpath_regex cgi-bin \? \.exe \.mp3 no_cache deny QUERY OR acl QUERY urlpath_regex cgi-bin \? acl magic_words2 url_regex -i \.exe \.mp3 no_cache deny QUERY no_cache deny magic_words2 Once again the \. is to escape the special meaning of the dot. Hope this will help you. Jean-Philippe Houde On Wednesday 24 March 2004 21:41, Diamond King wrote: > Dear all, > > Im using Squid version squid/2.5.STABLE1-20030121 > and webmin to control the squid. The box is running > mandrake linux 9.1. Problem is i tried to avoid > caching certain type of files such as *.mpg *.exe etc > etc.. and here's my config for it :- > > *snip* > acl QUERY urlpath_regex cgi-bin \? > acl magic_words2 url_regex -i .exe .mp3 > no_cache deny QUERY magic_words2 > > */snip*
