Solved

"Automatic Proxy Configuration URL" or "Use Automatic Configuration script" at browsers

Posted on 2008-06-12
11
5,499 Views
Last Modified: 2012-08-14
Dear experts

At browser network setting
* Mozilla has "Automatic Proxy Configuration URL"
* IE called it as "Use Automatic Configuration script"

What is above parameter for?

At office I need to set those value at my browser(IE / Mozilla) to certain URL, e.g http://abc.com
But then, if I'm using other application (e.g TortoiseSVN, Paros Proxy) that will connect to "outside network" , there is no way to specify those parameter inside the application, hence it failed.

Any advice?


0
Comment
Question by:isuhendro
  • 4
  • 3
  • 2
  • +2
11 Comments
 
LVL 11

Assisted Solution

by:MacNuttin
MacNuttin earned 100 total points
Comment Utility
proxy
 An intermediary or "go-between" program that acts as both a
  server and a client for the purpose of making requests on behalf of other clients.

At your office there is a proxy setup so you are not directly accessing the internet. The proxy is connecting on your behalf and forwarding the "presumably filtered" results to your browser.

The settings simple point to the address of the proxy I think
0
 
LVL 11

Expert Comment

by:MacNuttin
Comment Utility
You could setup ie to use proxy and use mozilla to directly browse the internet. And opera to use a second proxy - just a suggestion
0
 

Author Comment

by:isuhendro
Comment Utility
Hi MacNuttin,

thank you for your response. btw still not clear what's the different between "normal"  & "automatic" proxy here..
0
 
LVL 11

Expert Comment

by:MacNuttin
Comment Utility
Well I would expect it to be automatic if you don't tell browser config the address of proxy but rather have the proxy anounce itself in some discovery process of the browser
0
 
LVL 44

Accepted Solution

by:
Darr247 earned 120 total points
Comment Utility
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:isuhendro
Comment Utility
Hi MacNuttin,

I think you're right that there is some automation if I did not specify anything at browser.. but actually my question is about below configuration inside browser
* Mozilla has "Automatic Proxy Configuration URL"
* IE called it as "Use Automatic Configuration script"

(I need to fill in above configuration before able to connect).
0
 
LVL 11

Expert Comment

by:MacNuttin
Comment Utility
And Like I said above other than using different browsers preconfigured for the different Proxy settings I know of no way to change proxy based on URL

But this is not so bad you can control what browser opens and thereby the proxy with a shortcut start in Mozilla for example for Proxy 1 shortcut start in IE for Proxy 2
0
 
LVL 10

Assisted Solution

by:lanboyo
lanboyo earned 100 total points
Comment Utility
Both of those settings allow for a url to be specified for a file with a proxy configuration script.

The proxy configuration script is a file written in javascript to the netscape PAC syntax that tells the workstation what proxy servers to connect to, what domains or hosts to use proxies for, etc.

If this option is selected, the browser will try to download the file every time it starts up, and if it fails it will either use a previously downloaded file, or attempt to connect directly. Firefox will just attempt to coinnect directly.  This does not work for other applications on the workstation, just browsers. Occasionally Java will work using this, but not always.

If you do not have a web server hosting a PAC file, then you should not select that option.

The autodetect proxy configuration option in both firefox and ie will attempt to resolve a server named
" wpad " using the dns domain suffix list on the workstation, and if it resolves it, it will attempt to pull down a file using the url http://wpad.(domain suffix)/wpad.dat .

The wpad.dat file needs to be, you guessed it, a file configured in netscape PAC javascript format. This file isgenerated and placed automatically on servers running Windows Internet Proxy services .

0
 
LVL 1

Assisted Solution

by:dawez
dawez earned 180 total points
Comment Utility
For Mozilla there is an extension FoxyProxy http://foxyproxy.mozdev.org/ which can be used to switch from a proxy to a non proxied environment with a click of mouse without need to go all the time in config. You can also define patterns of URLs to use with one proxy or another (yes you can also specify multiple proxies).

Internet explorer 7 seems to implement something similar via a plugin called  ie7pro http://www.ie7pro.com/proxy-switcher.html . I have not tried this one so I do not know how this is working.

If you are looking for a permanent solution to switch proxy upon connection, you can get the p that you have and create something like an hastable (ie.e. at work I have 10.x.x.x while at home 192.x.x.x). You can create a script with AutoIT (http://www.autoitscript.com/) or a similar tool to modify the explorer proxy. The proxy setting for explorer are stored in the registry [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings] which can be manipulated easily. The script for AutoIT will require less than 20 lines.. (something like VBScript).

Finally if you want to set all the programs to use the proxy specified in Explorer, you can use the command proxycfg (http://msdn.microsoft.com/en-us/library/aa384069.aspx) which should come standard with winXP.

As you may guessed I struggled a bit with proxies...

Hope that this will help.
Davide
0
 
LVL 1

Assisted Solution

by:dawez
dawez earned 180 total points
Comment Utility

Hi I forgot to add the possibility of using the proxy.pac files which can do the same switching that I suggest to implement with AutoIT (switching proxy based on current local machine IP). You can find some good examples of configuring a pac file here : http://nscsysop.hypermart.net/proxypac.html . You can set up a proxy.pac that is switching proxy based on the destination url.

You can also add multiple proxy in the return function as in the code I attached. The multiple proxy will be tried one at once giving you the one that your machine can ping.
function FindProxyForURL(url, host) {

  var no_proxy = "DIRECT";

  if (isInNet(myIpAddress(), "10.0.0.0")) {

    return "PROXY 10.1.1.1:80"; PROXY 10.1.2.2:80; PROXY 10.3.2.3:8080";

  } else {

    return no_proxy ;

   }

}

Open in new window

0
 

Author Closing Comment

by:isuhendro
Comment Utility
Thanks so much!
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
Configuring network clients can be a chore, especially if there are a large number of them or a lot of itinerant users.  DHCP dynamically manages this process, much to the relief of users and administrators alike!
This video shows how use content aware, what it’s used for, and when to use it over other tools.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now