Yes, there is a way!
In IE9, if you configured the proxy manually in the Internet settings, you can click "Advanced" and simply add <-loopback> to the proxy bypass list. In IE6, localhost URLs go through the proxy server when manually setting up the proxy server. Only versions of IE7 + do not send localhost requests to the proxy server.
If you want a more global solution, you can create an automatic proxy configuration script. This is basically a javascript file containing the FindProxyForURL function. You can configure Internet settings with the URL of this script. All HTTP requests will be requested by FindProxyForURL for the proxy server it needs. Therefore, if you want all the URLs to go through the proxy, you would do something like:
function FindProxyForURL(url, host) { return "PROXY localhost:1234"; }
If you want external addresses to go to your localhost proxy, you would do something like:
function FindProxyForURL(url, host) { if (isPlainHostName(host)) { return "DIRECT"; } return "PROXY localhost:1234"; }
Nathan moinvaziri
source share