Search squid archive

Re: Is this valid ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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\$

--
Mark Andrews
Senior Systems Administrator
IDT Entertainment Toronto
489 Queen Street East
Toronto, Ontario
M5A 1V1
CANADA

E: mandrews@xxxxxxx
P: 416-861-9269
F: 416-363-3301


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux