Re: [squid-users] Re: Blocking spesific url

From: Leonardo Rodrigues <leolistas_at_solutti.com.br>
Date: Fri, 11 Jul 2014 09:20:08 -0300

Em 11/07/14 05:38, Andreas Westvik escreveu:
> Here is my (working) squid.conf without the acl.
>
> http_port 192.168.0.1:3128 transparent
> #Block
> acl ads dstdom_regex -i "/etc/squid3/adservers"
> ...
>
> And here is the top of my /etc/squid3/adservers file
>
> akamaihd\.net\/battlelog\/background-videos\/ <— Not working.
> rd.samsungadhub.com
> ad.samsungadhub.com
> http://eaassets-a.akamaihd.net/battlelog/background-videos/naval-mov.webm$
>

     you really need to understand the ACL types. Including a full URL
on a dstdom acl of course will not work. For blocking based on the full
url, domain and path, you'll need an url_regex acl type instead, which
by coincidence is exactly the one i sent on the previous message i
replied you :)

-- 
	Atenciosamente / Sincerily,
	Leonardo Rodrigues
	Solutti Tecnologia
	http://www.solutti.com.br
	Minha armadilha de SPAM, NÃO mandem email
	gertrudes_at_solutti.com.br
	My SPAMTRAP, do not email it
Received on Fri Jul 11 2014 - 12:20:20 MDT

This archive was generated by hypermail 2.2.0 : Fri Jul 11 2014 - 12:00:04 MDT