Simon Bryan wrote: > I have: > acl webmail dstdomain "/etc/dansguardian/blacklists/mail/domains" > acl webmail2 urlpath_regex "/usr/local/squid/acls/webmailregex" > acl TEST dstdomain .passport.com > > http_access deny students webmail > http_access deny students webmail2 > http_access deny students TEST > > The deny only seems to be working for the TEST acl not the other two, > question is - have I given them the correct acl type? > > The webmail file contains things like: > 123india.com > 163.net > 2bmail.co.uk
I think you want dots in front of all of these.. without a dot 163.net just matches 163.net not www.164.net or mail.163.net etc.. > While the webmailregex file contains things like: > .tamilpal. > .utamil. > \.email\. Looks fine, but you probably want to use \. everywhere.. To tell if you are using the correct acl, please give a few examples of URLs you want to match with these regex patterns. Note: A URL is structured as protocol://domain/path and the Squid acl names follows the same structure. A *path acl matches the path component of a url. Regards Henrik