Sorry but I am a begginer, I never ever heard about this dstdomain.

How about this "# sed 's/^/\^/' txtgeneral.txt" ? I should use it instead
"http_access allow txtlan general !download" ?

----- Original Message ----- 
From: "Andreas Pettersson" <[EMAIL PROTECTED]>
To: "Christian Ricardo dos Santos" <[EMAIL PROTECTED]>
Cc: "squid-users" <[EMAIL PROTECTED]>
Sent: Thursday, September 30, 2004 5:24 PM
Subject: Re: [squid-users] Blocking mixed URLs


> 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

Reply via email to