Re: [squid-users] blocking download of special extentions

From: Jose Araujo <jlaraujo@dont-contact.us>
Date: Thu, 22 May 2003 16:35:37 +0100

dumpmail@gmx.net wrote:

>hi,
>
>i am using this acl for blocking the download of mp3 files
>
>acl mp3_dl urlpath_regex -i '^ftp.*://.*/.*\.(mp3|zip)\?*[^/]*$'
>http deny mp3_dl
>
>Now i also want to block any ftp urls AND add new extentions like
>mpg/mpeg/avi/asf etc without adding new rules. Can this also be done
>on a external text file?
>
>Thnaks for your help!
>
>
>
Try this (2.5STABLE2).

acl filedeny urlpath_regex -i "/usr/local/squid-2.5.STABLE2/etc/filedeny"

#Download definition
acl download method GET

#deny access to all downloads
http_access deny filedeny download

-- /usr/local/squid-2.5.STABLE2/etc/filedeny

\.msi$
\.ez$
\.xls$
\.hqx$
\.cpt$
\.dot$
\.wrd$
\.bin$
\.dms$
\.lha$
\.lzh$
\.ace$
\.rar$
\.r00$
\.r01$
\.exe$
\.ppt$
\.wp5$
\.wk$
\.wz$
\.vcd$
\.bz2$
\.deb$
\.dvi$
\.tar$
\.gtar$
\.tgz$
\.gz$
\.com$
\.exe$
\.bat$
\.rpm$
\.spm$
\.zip$
\.mid$
\.midi$
\.kar$
\.mpga$
\.mp2$
\.mp3$
\.ra$
\.dl$
\.fli$
\.gl$
\.mpe$
\.mpeg$
\.mpg$
\.qt$
\.mov$
\.avi$
\.movie$
\.wav$
\.au$
\.asf$
\.af$
\.bin$
\.gz$
\.bz2$
\.asx$

Jose Araujo
Received on Thu May 22 2003 - 09:36:19 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:16:53 MST