<div dir="ltr">Hi Alex,<div><br></div><div>Thank you, that works perfectly.</div><div><br></div><div>Cheers,</div><div>Josh</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 12, 2021 at 7:50 PM Alex Rousskov <<a href="mailto:rousskov@measurement-factory.com">rousskov@measurement-factory.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 3/12/21 12:17 PM, Joshua Rogers wrote:<br>
<br>
> I am hoping to allow access to all websites through squid except certain<br>
> websites. Sites which are not allowed will require authentication.<br>
> <br>
> I tried this configuration:<br>
> http_access allow all<br>
<br>
Game over. The order of http_access rules matters. The first matching<br>
rule wins. An always-matching "all" rule renders any further http_access<br>
rules useless.<br>
<br>
I have not tested this, but I would start with something like this:<br>
<br>
    http_access allow google google_users<br>
    http_access deny google<br>
    http_access allow all<br>
<br>
Alex.<br>
<br>
<br>
> acl my_auth proxy_auth REQUIRED<br>
> acl google_users proxy_auth user1 user2 user3<br>
> acl google dstdomain .<a href="http://google.com" rel="noreferrer" target="_blank">google.com</a> <<a href="http://google.com" rel="noreferrer" target="_blank">http://google.com</a>><br>
> http_access deny google !google_users<br>
> http_access allow my_auth <br>
> <br>
> but it simply allowed access to all websites instead of blocking *only*<br>
> .<a href="http://google.com" rel="noreferrer" target="_blank">google.com</a> <<a href="http://google.com" rel="noreferrer" target="_blank">http://google.com</a>>.<br>
> <br>
> Is this sort of configuration possible with Squid, and if so, how can it<br>
> be done?<br>
> <br>
> Cheers,<br>
> Josh<br>
> <br>
> _______________________________________________<br>
> squid-users mailing list<br>
> <a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a><br>
> <a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><br>
> <br>
<br>
</blockquote></div>