Re: [squid-users] File Blocking not working

From: Matus UHLAR - fantomas <uhlar@dont-contact.us>
Date: Wed, 8 Nov 2006 11:48:40 +0100

On 08.11.06 12:01, Hement Gopal wrote:
> acl files url_regex -i "/usr/local/squid/etc/banned-files.txt"
> acl workdays time M T W H F 07:00-17:00
>
> http_access deny files workdays
>
> Banned-files.txt looks like :-
>
> \.mpeg$
> \.mov$
> \.mpg$
> \.avi$
> \.wmv$
> \.mp3$
>
> Now if I browse to http://www.cnn.com/test.avi I get the my error page
> coming up saying Access restricted..which is great.
>
> But if I try another site like http://www.is.co.za/test.avi the request
> is not blocked.

don't you have any other access rules?

Note that http://www.cnn.com/test.avi? will be allowed too, you should use
some better filtering system...

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
The early bird may get the worm, but the second mouse gets the cheese. 
Received on Wed Nov 08 2006 - 03:48:57 MST

This archive was generated by hypermail pre-2.1.9 : Fri Dec 01 2006 - 12:00:03 MST