[squid-users] Whitelist everything except

Amos Jeffries squid3 at treenet.co.nz
Mon Jun 11 06:12:29 UTC 2018


On 11/06/18 05:22, Yochi Lipschitz wrote:
> Hi,
> 
> I am currently using Squid 3. Is it possible to Whitelist a domain but
> exclude specific subdomains? I do not want to have to list all the
> subdomains that I want to Whitelist, I want to Whitelist everything
> except 1 or 2 specifics.

Of course. Anything that can be expressed as a boolean condition can be
done. Just use two ACL names and deny the sub-domains before allowing
the general domain.

These docs cover AND/OR logic and ordering
<https://wiki.squid-cache.org/SquidFaq/SquidAcl#Common_Mistakes>

Amos


More information about the squid-users mailing list