Re: [squid-users] Blocking mixed URLs

From: Andreas Pettersson <andpet@dont-contact.us>
Date: Thu, 30 Sep 2004 22:24:14 +0200

> Thanks your for the help...
>
> But this way I need to create one rule for each website permitted to each
> group of users instead of a single rule by group.
>
> Nowadays we are using rules like the one bellow (two text files where one
> list the IP address and the other the websites). Right now we have 36 groups
> using squid (+- 3000 users).
>
> acl general url_regex -i "/etc/squid/data/txtgeneral.txt"
> http_access allow txtlan general !download

I was just giving you an example of how you should write the regex.
Ok, the dots wouldn't be that necessary to escape with backslash. Just add ^ att the beginning of each row in txtgeneral.txt and that should do it.

# sed 's/^/\^/' txtgeneral.txt

Or again even better, use dstdomain.

/Andreas
Received on Thu Sep 30 2004 - 14:23:46 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Oct 01 2004 - 12:00:03 MDT