troubleshooting Question

PAC File - Bypass proxy server for local addresses

Avatar of Phil Pearce
Phil PearceFlag for United Kingdom of Great Britain and Northern Ireland asked on
JavaVisual Basic ClassicVB Script
2 Comments1 Solution5478 ViewsLast Modified:
Hi,
Ive got a pac file done which looked like this (example a) what Im trying to get is a pac file that bypasses local addresses.  Any ideas on how this can be done. Ive tried (example b) but does anyone know if this is the right way?

Thanks
example a)
function
	FindProxyForURL(URL,host)
	{
	return "PROXY 10.4.2.28:80;PROXY 10.4.2.29:80";
	}
 
example b)
function FindProxyForURL(url, host)
{
if (shExpMatch(url, "*.internaldomainname.co.uk")) 
return DIRECT;
else
return "PROXY 10.4.2.29:80;PROXY 10.4.2.28:80";
}
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros