Re: [squid-users] Is this valid ?

From: Peter Marshall <peter.marshall@dont-contact.us>
Date: Mon, 03 Apr 2006 14:56:16 -0300

Thanks for the help.

What does the $ do ??

Peter

Mark Andrews wrote:
> Peter Marshall wrote:
>
>> I re-formatted my squid.conf file so that it would be easier to read,
>> and it seemed to have broken some things.
>>
>> 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
>>
>> Or do I have to put them all on the same line .. ?
>> ie acl CHAT url_regex -i .icq.com .msg.yahoo.com .......
>
> You likely want to escape all the dots (.) as in "\." so that the regexp
> matches the dot
> as a separator between domain components and not any character. Also add
> the escaped
> end of line character (\$) to the end of those lines where the domain
> name is complete
> such as icq.com and msg.yahoo.com.
>
> I'd also drop the asterisk from line eight. If we those two changes,
> you'll end up with
> something like this:
>
> 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\$
>
Received on Mon Apr 03 2006 - 11:55:42 MDT

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