/etc/squid/squid.conf
.... auth_param basic program /usr/lib64/squid/basic_ncsa_auth /etc/squid/.htpasswd acl authenticated proxy_auth REQUIRED http_access allow authenticated .... # And finally deny all other access to this proxy http_access deny all ....