I have an acl that I use to block ad sites. One of the regex's that I use is:
"_ad_". I have discovered that I need to tweak this regex to fail when it
finds the following pattern: http://something.com/path/some_ad_test.js
I modified my regex as follows:
_ad_(?!test) which should work as far as I can tell, however, when I reload
squid, I get the following error:
squid.conf line 644: acl Deny_ADs url_regex -i "/etc/squid/deny_ADs"
aclParseRegexList: Invalid regular expression '_ad_(?!test)': Invalid
preceding regular expression
In fact, anytime I ever try to use round brackets, I get that error. As a
workaround, I used _ad_[^t] which is vague but does allow the pattern to fail
the query.
Any suggestions out there?
Thanks in advance...
Received on Sat Nov 15 2008 - 04:00:33 MST
This archive was generated by hypermail 2.2.0 : Sat Nov 15 2008 - 12:00:02 MST