Re: [squid-users] Is this valid ?

From: Matus UHLAR - fantomas <uhlar@dont-contact.us>
Date: Tue, 4 Apr 2006 11:36:22 +0200

On 03.04.06 14:01, Peter Marshall wrote:
> Is the following valid syntax ??
>
> acl CHAT url_regex -i .icq.com
> acl CHAT url_regex -i .msg.yahoo.com
> acl CHAT url_regex -i messenger.yahoo
> acl CHAT url_regex -i webmessenger
> acl CHAT url_regex -i .webmessenger
> acl CHAT url_regex -i .webmessenger.msn.com
> acl CHAT url_regex -i .messenger.*
> acl CHAT url_regex -i gateway.dll
> acl CHAT url_regex -i messenger.msn
> acl CHAT url_regex -i mirc
> acl CHAT url_regex -i icq.com
> acl CHAT url_regex -i go.icq
> acl CHAT url_regex -i miranda-im.org

it is valid (although the dots should be escaped as already pointed out),
but very ineffective and your squid will spend much CPU time when comparing
so many requests.

You should use "dstdomain" at least for some of those and dstdom_regex for
some (all?) others.

Putting domain names into files will make things a bit clearer, as pointed
out, too...

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
   One OS to rule them all, One OS to find them, 
One OS to bring them all and into darkness bind them 
Received on Tue Apr 04 2006 - 03:36:30 MDT

This archive was generated by hypermail pre-2.1.9 : Mon May 01 2006 - 12:00:02 MDT