////////////////////////////////////////////////////////////////////// // // File: proxy.pac // Author: Massimo Pistoni - Sandro Angius - Claudio Soprano // Date: May 1996 // Last Modification: 14-gennaio-2004 // // Description: Mozilla proxy auto configuration for LNF. // ////////////////////////////////////////////////////////////////////// // // The only function we need to define. // function FindProxyForURL( url, host ) { if ( localHostOrDomainIs(host,"windowsupdate.microsoft.com") || dnsDomainIs(host,"windowsupdate.microsoft.com") ) return "DIRECT"; if (isPlainHostName(host)) return "DIRECT"; if (dnsDomainIs(host,".lnf.infn.it") || dnsDomainIs(host,".ac.infn.it") || localHostOrDomainIs(host, "www.infn.it") ) return "DIRECT"; if (dnsDomainIs(host,".localdomain") || isInNet(host, "127.0.0.0", "255.255.255.0") || isInNet(host, "192.168.0.0", "255.255.0.0") || localHostOrDomainIs(host, "localhost") ) return "DIRECT"; if ( url.substring(0,5)=="http:" || url.substring(0,6)=="https:" || url.substring(0,4)=="ftp:" || url.substring(0,7)=="gopher:" ) { return "PROXY squid.lnf.infn.it:3128 ; DIRECT"; } else return "DIRECT"; }