ok, two things then 1) so for example if i put .test.com it'll ignore everything such as www.test.com, but would it ignore test.com as well? 2) assuming my first question is favorable and .test.com does both things ... since my list contains list of domains and IPs, can someone help me with regex to add "." in front of each domain and ignore lines that contains IPs? (to run it in a shell, using i dont know awk/sed) On Mon, Feb 14, 2011 at 6:58 PM, Amos Jeffries <squid3@xxxxxxxxxxxxx> wrote: > On Mon, 14 Feb 2011 17:35:17 -0500, alexus wrote: >> >> is there a way for me to block a list of domains that's reside in >> outside file and somehow append a small regular expression in front of >> it. > > That would be using regex. Not dstdomain. Two VERY different algorithms. > >> the problem is that list contains only domains and if i use dstdomain >> then people put www. in front of domain and squid doesn't catch it :( >> >> any solution? > > dstdomain performs a FQDN-order scan of the domain segments (right to left). > To ignore any on the left-hand side simply start the dstdomain entry with a > dot (.). > > eg: > Âacl example dstdomain .example.com > > > Amos > -- http://alexus.org/