Squid proxy: authorize some site without authentication

PROXYsquid

I have a Squid proxy and I am using auth_param basic program with ncsa_auth.

I would like the user to access some specified sites, like google.com and yahoo.com, without asking them to provide proxy credentials, meaning that when users type google.com in the browser, the site will be opened immediately, without requesting proxy username and password.

Other sites will be accessed normally, using proxy credentials.

How to configure Squid for this scenario?

Best Answer

You should add an acl for the permited addresses on top of your auth lines in squid.conf, i.e for google: acl GOOGLE dstdomain google.com http_access allow GOOGLE

That should do it. Remember to add this lines before any auth lines in squid.conf