function FindProxyForURL(url, host) { //alert(myIpAddress()) if ( shExpMatch(url,"*.imtlucca.it/*") ) { return "DIRECT"; } // dalla rete locale accedo diretto if ((isInNet(myIpAddress(), "10.180.48.0", "255.255.248.0")) || (isInNet(myIpAddress(), "10.180.11.0", "255.255.255.0"))) { return "DIRECT"; } if (isInNet(myIpAddress(), "10.180.20.0", "255.255.255.0")) { return "DIRECT"; } // le url relative al servizio biblioteche via proxy: if ( shExpMatch(url,"*.umi.com/*") || shExpMatch(url,"*.acm.org/*") || shExpMatch(url,"*.gbv.de/*") || shExpMatch(url,"*.csa.com/*") || shExpMatch(url,"*.silverplatter.com/*") || shExpMatch(url,"*.casalini.it/*") || shExpMatch(url,"*.ieee.org/*") || shExpMatch(url,"*.jstor.org/*") || shExpMatch(url,"*.lexisnexis.com/*") || shExpMatch(url,"*.sciencedirect.com/*") || shExpMatch(url,"*.urbadoc.com/*") || shExpMatch(url,"*.kluwerlawonline.com/*") || shExpMatch(url,"*.metapress.com/*") || shExpMatch(url,"*.ssrn.com/*") || shExpMatch(url,"*.sciencedirect.com/*") || shExpMatch(url,"*.oxfordlawreports.com/*") || shExpMatch(url,"*.metapress.com/*") || shExpMatch(url,"*.bvdep.com/*") || shExpMatch(url,"*.heinonline.org/*") || shExpMatch(url,"*.westlaw.com/*") || shExpMatch(url,"*.annualreviews.org/*") || shExpMatch(url,"*.atypon-link.com/*") || shExpMatch(url,"*.blackwell-synergy.com/*") || shExpMatch(url,"*.cambridge.org/*") || shExpMatch(url,"*.catchword.com/*") || shExpMatch(url,"*.cepr.org/*") || shExpMatch(url,"*.healthaffairs.org/*") || shExpMatch(url,"*.highwire.org/*") || shExpMatch(url,"*.ingentaconnect.com/*") || shExpMatch(url,"*.interscience.wiley.com/*") || shExpMatch(url,"*.iop.org/*") || shExpMatch(url,"*.journals.cambridge.org/*") || shExpMatch(url,"*.journals.uchicago.edu/*") || shExpMatch(url,"*.leaonline.com/*") || shExpMatch(url,"*.metapress.com/*") || shExpMatch(url,"*.mitpressjournals.org/*") || shExpMatch(url,"*.nber.org/*") || shExpMatch(url,"*.oxfordjournals.org/*") || shExpMatch(url,"*.palgrave-journals.com/*") || shExpMatch(url,"*.pnas.org/*") || shExpMatch(url,"*.princeton.edu/*") || shExpMatch(url,"*.sagepub.com/*") || shExpMatch(url,"*.sourceoecd.org/*") || shExpMatch(url,"*.oecd-ilibrary.org/*") || shExpMatch(url,"*.imfstatistics.org/*") || shExpMatch(url,"*.qpat.com/*") || shExpMatch(url,"*.worldscinet.com/*") || shExpMatch(url,"*.aida.bvdep.com/*") || shExpMatch(url,"*.scopus.com/*") || shExpMatch(url,"*.oxfordscholarship.com/*") || shExpMatch(url,"*.wiley.com/*") || shExpMatch(url,"*195.145.59.167/*") || shExpMatch(url,"*195.145.59.165/*") || shExpMatch(url,"*.tandfonline.com/*") || shExpMatch(url,"*.springer.com/*") || shExpMatch(url,"*.aps.org/*") || shExpMatch(url,"*.springerlink.com/*") || shExpMatch(url,"*.proquest.com/*") || shExpMatch(url,"*.leggiditalia.it/*") || shExpMatch(url,"*.proquest.com/*") || shExpMatch(url,"http://www.artstor.org/*") || shExpMatch(url,"http://library.artstor.org/*") || shExpMatch(url,"http://web2.artstor.org/*") || shExpMatch(url,"*.lexisnexis.com/*") || shExpMatch(url,"*.amadeus.bvdep.com/*") || shExpMatch(url,"*.aeaweb.org/*") || shExpMatch(url,"http://ebookcentral.proquest.com/lib/imtlucca-ebooks/*") || shExpMatch(url,"imtlucca.summon.serialssolutions.com/*") || shExpMatch(url,"academic.lexisnexis.eu/*") || shExpMatch(url,"lexisnexis.com/us/lnacademic/*") || shExpMatch(url,"www.oxfordscholarship.com/*") || shExpMatch(url,"www.universitypressscholarship.com/*") || shExpMatch(url,"*.brepolis.net/*") ) { return "HTTPS proxylib.imtlucca.it:8081; DIRECT"; } // le altre dirette return "DIRECT"; }