Re: [squid-users] Blocking Files

From: PASCUAL, Mike A. <mapascual@dont-contact.us>
Date: Tue, 17 Jun 2003 13:36:31 +0800

try to create a file download.txt
[eE][xX][eE]
[sS][wW][fF]
[dD][oO][cC]

acl denied urlpath_regex "/path/to/download.txt"
http_access deny denied

mike

----- Original Message -----
From: "Justin Hennessy" <jhennessy@mitchamcouncil.sa.gov.au>
To: <squid-users@squid-cache.org>
Sent: Tuesday, June 17, 2003 11:49 AM
Subject: Re: [squid-users] Blocking Files

Cable,

Not sure about question 2 but this is how I blocked EXE files, you could
modify this to do what you want:

acl EXE urlpath_regex \.[eE][xX][eE]
http_access deny EXE

Would be interested in how to give a "list" of extensions though.

_____________________________________________
Justin Hennessy RHCT MCSE
Network and Systems Administrator
City of Mitcham
131 Belair Rd
Torrens Park
South Australia 5062

Ph: +61 8 8372 8854
Fax: +61 8 8372 8101
Mobile: 0411 861 008

Quote: "It could be terminal, if I meet the Lone Sniper hiding behind his
grassy
knoll."

Information contained in this message may be confidential information and
may also be the subject of legal professional privilege or public interest
immunity. If you are not the intended recipient, any use, disclosure or
copying of this document is unauthorised. If you have received this
document in error, please telephone (08) 8372 8888.

>>> cable linux <cablelinux@yahoo.com> 17/06/2003 12:44:10 pm >>>
hello,

Q1. I want to block *.pdf files from my squid.

Q2. ok fine if that above acl works than how can i
block more than one files (*.ps, *.pdf, *.doc,
*.swf)unlimited with one command.

Regards
cable

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
Received on Mon Jun 16 2003 - 23:27:43 MDT

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