Thanks for your reply Henrik, but how if the rule is valid for some users
only? is it possible? many thanks
Winan
-----Original Message-----
From: Henrik Nordstrom [mailto:hno@squid-cache.org]
Sent: Thursday, May 22, 2003 2:18 PM
To: winanjaya@lippogeneral.com; squid-users@squid-cache.org
Subject: Re: [squid-users] How to configure squid for denying users to
do download process for specified time range?
On Thursday 22 May 2003 04.01, Winanjaya wrote:
> How to configure squid for denying users to do download process for
> specified time range? I have checked on FAQ ..but what I found is
> only "4.21 Can I prevent users from downloading large files?"..
> it's only denying users from downloading large files what I want is
> to deny specific users from downloading for specified time range..
> .. any idea and or suggestion would be greatly appreciated and many
> thanks in advance
The problem with your question is that HTTP does not differentiate
between downloading and viewing information. In both cases the
information is downloaded by the browser and then acted upon.
What you can do is to make a url_regex matching what looks like
requests for files which are normally downloaded, and combine this
with a time acl to block access to these.
acl download urlpath_regex -i \.exe$ \.zip$ \.mp3$ \.mpg$ \.mpeg$
\.tar$ \.tag.gz$ \.tar.bz2$ \.tgz$ \.rpm$ \.iso$ [etc..]
acl office_hours time 09:00-17:00
acl GET method GET
http_access deny GET office_hours download
Regards
Henrik
-- Donations welcome if you consider my Free Squid support helpful. https://www.paypal.com/xclick/business=hno%40squid-cache.org If you need commercial Squid support or cost effective Squid or firewall appliances please refer to MARA Systems AB, Sweden http://www.marasystems.com/, info@marasystems.com ----------------------------------------- (on viruswall.lippogeneral.com) Powered by Interscan VirusWall ---------------------------------------------------------Received on Thu May 22 2003 - 01:33:28 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:16:51 MST