Re: [squid-users] yes or no question

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 25 Aug 2009 12:05:51 +1200

On Mon, 24 Aug 2009 21:54:10 +0400, "Alex" <flying_alex_at_mail.ru> wrote:
> Good day.
> I've checked Russian FAQ and did not find the answer to my question.
> I have a net with 20 computers. I want to block access to certain sites
> forbid to download of certain types of files (*.mp3, *.avi e.t.c.).
> Is it possible with Squid? For now I just want "yes" or "no" because the
> rest I'll try to find myself.
> Regards, your potential user.

Kudos for trying to do it yourself. But this is one area with a lot of
obsolete FUD in the online tutorials.
I'd rather push you in the right direction so you have a chance at evading
the very bad experience ahead.

ACL -> urlpath_regex
pattern: -i \.(mp3|avi)(\?.*)?$

ACL -> rep_mime_type
pattern: -i audio|video

Now off to the FAQ sections of ACL and figure out how to use them. :)

Amos
Received on Tue Aug 25 2009 - 00:05:55 MDT

This archive was generated by hypermail 2.2.0 : Tue Aug 25 2009 - 12:00:03 MDT