I haven't really used any of this stuff, I just googled for your problem and came up with that solution.

But from what I've read, Dansguardian appears to be a web content filter that uses blacklists, phrase matching, and other methods combined together. I'm not sure what squid's capabilities are so I can't speak as to whether or not this is an improvement.