Re: [squid-users] Confused with blocking files.

From: Matus UHLAR - fantomas <uhlar@dont-contact.us>
Date: Mon, 19 Feb 2007 09:35:17 +0100

On 14.02.07 02:26, Paul wrote:
> I've have the following in my config to stop the follow from being able to
> be downloaded.
>
> acl EXE urlpath_regex -i \.exe$
> acl programs rep_mime_type application/octet-stream
> http_reply_access deny EXE programs
>
> acl ZIP urlpath_regex -i \.zip$
> acl programs rep_mime_type application/zip
> http_reply_access deny ZIP programs
>
> acl RAR1 url_regex -i \.rar$
> acl programs rep_mime_type application/rar
> http_reply_access deny RAR1 programs

well, you could put all those to one ACL or file.
Also, if someone appends an \? after such files, squid won't block them.

> to test this out, I go to http://www.filemirrors.com/ and top right hand
> put 'Ends with' and the relevant extension, then I click a few, some allow
> me to download, and some get blocked?
>
> I'm guessing it is something to do with my configuration..
>
> Can anybody help me? (Oh for info, I'm using the WinNT version 2.6Stable)

use real content filter, not such simple rules that can be easily avoided.

-- 
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.
I wonder how much deeper the ocean would be without sponges. 
Received on Mon Feb 19 2007 - 01:35:23 MST

This archive was generated by hypermail pre-2.1.9 : Thu Mar 01 2007 - 12:00:01 MST