Re: [squid-users] blocking ads/sites not working anymore?

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sun, 10 Mar 2013 19:46:53 +1300

On 2013-03-10 01:54, Andreas Westvik wrote:
> Hi everyone
>
> Over the time I have collected a lot of sites to block.
<snip>
>
> #Block
> acl ads dstdom_regex -i "/etc/squid3/adservers"
> http_access deny ads
>
>
> cat /etc/squid3/adservers | less
>
> (^|\.)yieldmanager\.edgesuite\.net$
> (^|\.)yieldmanager\.net$
> (^|\.)yoc\.mobi$
> (^|\.)yoggrt\.com$
> (^|\.)yourtracking\.net$
> (^|\.)z\.times\.lv$
> (^|\.)z5x\.net$
> (^|\.)zangocash\.com$
> (^|\.)zanox-affiliate\.de$
> (^|\.)zanox\.com$
> (^|\.)zantracker\.com$
> (^|\.)zde-affinity\.edgecaching\.net$
> (^|\.)zedo\.com$
> (^|\.)zencudo\.co\.uk$
> (^|\.)zenzuu\.com$
> (^|\.)zeus\.developershed\.com$
> (^|\.)zeusclicks\.com$
> (^|\.)zintext\.com$
> (^|\.)zmedia\.com$
>

Besides the fix Amm already gave, you will find Squid runs a bit faster
if you convert that listing to dstdomain format and use a dstdomain ACL
to check it.

Amos
Received on Sun Mar 10 2013 - 06:46:57 MDT

This archive was generated by hypermail 2.2.0 : Sun Mar 10 2013 - 12:00:03 MDT