Re: [squid-users] RE:Localhost

From: Vladislav Kurz <Vladislav.Kurz@dont-contact.us>
Date: Thu, 14 Jun 2001 17:25:28 +0300 (EET DST)

hello,

i have noticed this behavior also and I have this solution:

Add this to PAC/WPAD script to get browsers connecting to localhost
directly:

if (localHostOrDomainIs(host, "localhost.localdomain")) return "DIRECT";

If you want to prevent people accessing your web server on cache machine
pretending they use localhost add these lines:

acl localserver dst 127.0.0.1/255.255.255.255
http_access deny localserver

This helps when you have some access control in web server that allows
acces to cachemgr.cgi only from localhost.

regards

                                        Vladislav "Vladki" Kurz
Received on Thu Jun 14 2001 - 08:25:34 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:00:45 MST