-
Download and install Squid 3.5 for Windows (default path is C:\Squid)
-
Create file C:\Squid\etc\.htpasswd with the following content:
admin:$apr1$kWA/DRFy$klaeXRe3S3jIPqc64HTMA0
This corresponds to username admin and password 1234
To generate your own username/password use http://www.htaccesstools.com/htpasswd-generator-windows/ -
Open Squid configuration (squid.conf)
-
Add following to the top of squid.conf:
auth_param basic program "/cygdrive/c/squid/lib/squid/basic_ncsa_auth.exe" "/cygdrive/c/squid/etc/.htpasswd"
acl ncsa_users proxy_auth REQUIRED
http_access allow ncsa_users -
Comment out all http_access allow ... entries in squid.conf (except ncsa_users)
-
Restart Squid service
Web proxy is ready!
Proxy address: http://127.0.0.1:3128/
Proxy username: admin
Proxy password: 1234
Hi,
From where should I be getting basic_ncsa_auth file. Please reply asap.
Thanks,
Snehal