RE: [squid-users] Blocking .Exe files

From: <mailinglists@dont-contact.us>
Date: Tue, 29 Oct 2002 13:54:21 +0100

HI

I'm not quite sure but you could try this:

acl local10 src 192.168.10.0/255.255.255.0 WORKTIME
acl local10 url_regex -i \.exe$
http_access allow local10

HTH
Philipp

> -----Original Message-----
> From: NDV [mailto:ndv@bluewin.ch]
> Sent: Tuesday, October 29, 2002 12:57 PM
> To: squid-users@squid-cache.org
> Subject: [squid-users] Blocking .Exe files
>
>
>
> Hello,
>
> How do I allow local10 to download .exe files?
>
> Thank you,
>
> NDV
>
> #
> http_port 8080
> visible_hostname prxy.domaine.net
> ftp_user user@domaine.net
> ftp_list_width 32
> icp_port 0
> #
> acl QUERY urlpath_regex cgi-bin \?
> acl WORKTIME time MTWHFA 07:30-19:30
> acl LUNCH time MTWHF 12:30-13.30
> #
> cache_mem 32 MB
> cache_dir ufs /cache 200 16 256
> redirect_rewrites_host_header off
> replacement_policy GDSF
> #
> acl local10 src 192.168.10.0/255.255.255.0 WORKTIME
> acl local20 src 192.168.20.0/255.255.255.0 WORKTIME
> acl local30 src 192.168.30.0/255.255.255.0 WORKTIME
> acl local40 src 192.168.40.0/255.255.255.0 WORKTIME
> acl localhost src 127.0.0.1/255.255.255.255
> acl all src 0.0.0.0/0.0.0.0
> #
> acl Safe_ports port 80 443 20 21 1025-65535
> acl CONNECT method CONNECT
> #
> http_access allow local10
> http_access allow local20
> http_access allow local30
> http_access allow local40
> http_access allow localhost
> #
> http_access deny !Safe_ports
> http_access deny CONNECT
> http_access deny all
> #
> acl url_bat url_regex -i \.bat$
> http_access deny url_bat
> acl url_com url_regex -i \.com$
> http_access deny url_com
> acl url_vbs url_regex -i \.vbs$
> http_access deny url_vbs
> #
> acl url_mp3 url_regex -i \.mp3$
> http_access deny url_mp3
> acl url_mpg url_regex -i \.mpg$
> http_access deny url_mpg
> acl url_mpeg url_regex -i \.mpeg$
> http_access deny url_mpeg
> acl url_wma url_regex -i \.wma$
> http_access deny url_wma
> #
> acl url_js url_regex -i \.js$
> http_access deny url_js
> acl url_wsh url_regex -i \.wsh$
> http_access deny url_wsh
> acl url_msg url_regex -i \.msg$
> http_access deny url_msg
> acl url_reg url_regex -i \.reg$
> http_access deny url_reg
> acl url_cpl url_regex -i \.cpl$
> http_access deny url_cpl
> acl url_ppt url_regex -i \.ppt$
> http_access deny url_ppt
> acl url_pps url_regex -i \.pps$
> http_access deny url_pps
> acl url_doc url_regex -i \.doc$
> http_access deny url_doc
> acl url_xls url_regex -i \.xls$
> http_access deny url_xls
> acl url_pif url_regex -i \.pif$
> http_access deny url_pif
> acl url_src url_regex -i \.src$
> http_access deny url_src
> #
> cache_mgr squid@domaine.net
> cache_effective_user squid
> cache_effective_group squid
> log_icp_queries off
> buffered_logs on
> #
>
Received on Tue Oct 29 2002 - 05:54:25 MST

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