That did the trick! :D

http://bildr.no/view/1411006

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

> 
> 
> ----- Original Message -----
>> From: Andreas Westvik <andr...@spbk.no>
>> To: "squid-users@squid-cache.org" <squid-users@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
> 

Reply via email to