> 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 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. You have an 'any file' limit which matches and accepts before the streaming limit. You need to reverse the order of those two size lines. Amos