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