Re: [squid-users] How to configure squid for denying users to do download process for specified time range?

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 22 May 2003 09:18:19 +0200

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
Received on Thu May 22 2003 - 01:19:10 MDT

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