On Jan 23, 2008 5:28 PM, ankush grover <[EMAIL PROTECTED]> wrote:
> Hi friends,
>
> I am running a squid proxy server in transparent mode on FC7
> (squid-2.6.STABLE16-2). Currently 15 MB download limit is set in the
> squid but I want to restrict download of certain file types based on
> the size for ex if the size of .mp3/mpeg file is more than 1MB then
> don't allow the file to be downloaded but allow other file types to be
> downloaded with 15MB download limit. I tried the below settings in
> squid.conf file
>
> acl ankush src 172.16.4.0/24  (network range)
> acl ankush1 src 172.16.4.0/24
> http_access allow ankush

acl  ankush   src  172.16.4.1-100
acl  ankush1 src  172.16.4.101-200

>
> acl block_stream urlpath_regex
> \.(ra?m|mpeg|mov|m3u|pls|ivf|asf|asx|avi|wax|wma|wmv|wvx|wmp|wmx|m1v|mp2|mp3|mpa|mpe|mpv2|rm)($|\?)
> acl streaming rep_mime_type ^video/x-ms-asf ^video/x-ms-sf ^audio/mpeg
> ^audio/x-mpeg ^audio/x-pn-realaudio ^application/x-mms-framed
> ^application/vnd.ms.wms-hdr.asfv1 OPTIONS FOR X-Forwarded-For
>
>
>  reply_body_max_size 15000000 allow ankush(15 MB Limit for downloading)
>  reply_body_max_size 1000000 allow ankush1 streaming block_stream
> (only allowing 1MB for movie/video files)
>
> But still I am able to download movies/video files greater than 1 MB.
> Any suggestions/comments are most welcome.
>
>
>
> Thanks & Regards
>
> Ankush
>

Reply via email to