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

From: Andreas Westvik <andreas_at_spbk.no>
Date: Sat, 9 Mar 2013 14:45:18 +0100

That did the trick! :D

http://bildr.no/view/1411006

On Mar 9, 2013, at 14:33 , Amm <ammdispose-squid_at_yahoo.com> wrote:

>
>
> ----- Original Message -----
>> From: Andreas Westvik <andreas_at_spbk.no>
>> To: "squid-users_at_squid-cache.org" <squid-users_at_squid-cache.org>
>> Cc:
>> Sent: Saturday, 9 March 2013 6:24 PM
>> Subject: [squid-users] blocking ads/sites not working anymore?
>>
>> Hi everyone
>>
>> Over the time I have collected a lot of sites to block. ads/malware/porn etc.
>> This has been working like a charm. I have even created a
>> custom errorpage for this.
>> But since I don't know when, this has stopped working. And according to the
>> googling I have done, my syntax in squid.conf are correct.
>> So what can be wrong here?
>>
>> This is my setup:
>>
>>
>> cat /etc/squid3/squid.conf
>> http_port 192.168.0.1:3128 transparent
>> acl LAN src 192.168.0.0/24
>> http_access allow LAN
>> http_access deny all
>> cache_dir ufs /var/spool/squid3 5000 16 256
>>
>>
>> #Block
>> acl ads dstdom_regex -i "/etc/squid3/adservers"
>> http_access deny ads
>
> Dont know how it worked earlier but you need to put
> http_access deny ads
> before
> http_access allow LAN
>
> Amm
>
Received on Sat Mar 09 2013 - 13:45:28 MST

This archive was generated by hypermail 2.2.0 : Sat Mar 09 2013 - 12:00:04 MST