[squid-users] Whitelist domain ignored?
Amos Jeffries
squid3 at treenet.co.nz
Thu Oct 6 05:45:00 UTC 2016
On 6/10/2016 11:56 a.m., Jose Torres-Berrocal wrote:
> Correcting typo:
>
> And placing it inside a whitelist.acl file:
> acl whitelist2 dstdom_regex -i "whitelist.acl"
>
> Where whitelist.acl content:
> ^familymedicinepr\.com$
> ^mail\.yahoo\.com$
> ^neodecksoftware\.com$
> ^office\.net$
> \.familymedicinepr\.com$
> \.mail\.yahoo\.com$
> \.neodecksoftware\.com$
> \.office\.net$
>
Yes.
There is a simpler way if you are going to insisit on regex instead of
dstdomain. Starting the pattern with an optional '.' character: \.?
So whitelist.acl content:
\.?familymedicinepr\.com$
\.?mail\.yahoo\.com$
\.?neodecksoftware\.com$
\.?office\.net$
Using dstdomain in this case is better though since the comparison is
shorter and faster than regex.
Amos
More information about the squid-users
mailing list