Re: [squid-users] user can download blockd file type

From: Mohsin Khan <aaghaz00@dont-contact.us>
Date: Sun, 8 Aug 2004 22:23:59 -0700 (PDT)

Strange, normally ? means that you are bypassing the
cache, but not the squid.

--- Kashif Ali <aol@nexlinx.net.pk> wrote:

> i hav blocked some files downloading in my network
> from squid cache
> my acl is
> acl dlb urlpath_regex -i
> "/usr/local/squid/etc/dlb.txt"
> acl mim rep_mime_type -i
> "/usr/local/squid/etc/mim.txt"
> http_access deny dlb
> http_access deny mim
>
> #the dlb.txt
> #-------------------------
> \.cab$
> \.exe$
> \.rm$
> \.mp?$
> \.mpg$
> \.mpeg$
> \.mp3$
> \.wmv$
> \.wma$
> \.mov$
> \.avi$
> \.cab?$
> \.exe?$
> \.rm?$
> \.mp??$
> \.mpg?$
> \.mpeg?$
> \.mp3?$
> \.wmv?$
> \.wma?$
> \.mov?$
> \.avi?$
> ~
> #the mim.txt
> #------------------
> ^application/octet-stream$
> ^application/x-msdownload$
> ^audio/x-pn-realaudio$
> ^audio/mpeg$
> ^audio/x-wav$
> ^video/mpeg$
>
> when any user try to download like
> http://www.somesites.com/file.exe
> it gives access denyed (wich i want )
> but when a user add ? on end of url like
> http://www.somesites.com/file.exe?
> the result is squid starts downloading file but with
> out extantion i want
> to stop downloading from squid when a user add ?
> sign
> thnx
>

=====
Regards,
Mohsin Khan
CCNA ( Cisco Certified Network Associate 2.0 )
http://pk.aaghaz.net

>>>Happy is the one who can smile<<<

                
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
Received on Sun Aug 08 2004 - 23:24:20 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Sep 01 2004 - 12:00:02 MDT