Re: [squid-users] How can I cache most content

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 17 Feb 2010 12:04:31 +1300

On Tue, 16 Feb 2010 14:25:39 -0800 (PST), Landy Landy
<landysaccount_at_yahoo.com> wrote:
> Thanks for replying.
>
> As Marcus suggested, I added the following lines to squid.conf:
>
> acl blockanalysis01 dstdomain .scorecardresearch.com
> .google-analytics.com
> acl blockads01 dstdomain .rad.msn.com ads1.msn.com ads2.msn.com
> ads3.msn.com ads4.msn.com
> acl blockads02 dstdomain .adserver.yahoo.com
> pagead2.googlesyndication.com
> http_access deny blockanalysis01
> http_access deny blockads01
> http_access deny blockads02
>
> But, tried testing blocking other sites to see how squid handled it:
> acl blockads03 dstdomain .msn.com
> acl blockads04 dstdomain .testsite.com
>
> and I'm able to access these sites. Shouldn't these be blocked?

Only if you "http_access deny" them and do so in the right order relative
to all other http_access controls.

Amos
Received on Tue Feb 16 2010 - 23:04:54 MST

This archive was generated by hypermail 2.2.0 : Wed Feb 17 2010 - 12:00:05 MST