Search squid archive

Re: Confused with blocking files.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx ; 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. 

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux