[squid-users] deny downloads

From: Rajesh <rajesh@dont-contact.us>
Date: Thu, 24 Apr 2003 12:04:19 +1000 (EST)

Hi all,

I am running Squid-2.5Stable1 on solaris 8. I want to block users downloading
any gzip or zip files using their browser. I have the following in my squid.conf
file:

acl Downloads urlpath_regex \.gz$ \.GZ$ \.zip$ \.ZIP$ \.arj$ \.ARJ$ \
.lha$ \.LHA$ \.tgz$ \.TGZ$ \.gzip$ \.GZIP$ \.exe$ \.EXE$

http_access deny Downloads !POST

But it still allows me to download. Below is the output in my access_log file
when I tried to download a gzip file:

[24/Apr/2003:12:02:47 +1000] "GET
http://www1.au.squid-cache.org/Versions/v2/2.5/squid-2.5.STABLE1.tar.gz
HTTP/1.0" 200 458511 TCP_MISS:DEFAULT_PARENT

Any help would be really appreciated.

Thanks,
Rajesh.
 
Unix System Administrator
State Library of NSW
Macquarie Street
Sydney - 2000

Email: rajesh@sl.nsw.gov.au
Ph: 02-92731711

====================================
This email and any attachments to it are privileged and confidential.
If you
are not the intended recipient, please notify the sender and delete
it. The
contents of this email are not given or endorsed by the State Library
of New
South Wales unless otherwise indicated by an authorised officer of
the
Library. Copyright law may also apply to this contents of this email.
====================================
Received on Wed Apr 23 2003 - 20:04:55 MDT

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