Detecting auto-proxy details in Javascript

Is it possible to detect and get the proxy server name and port in javascript?

+1


a source to share


2 answers


No. Browser proxy settings are not accessible from JavaScript running on a web page.



May be. Browser proxy settings may be accessed (in some web browsers) from JavaScript with elevated resolutions (such as a Firefox add-on).

+1


a source


Why it's worth: While you're asking about JavaScript, accessing browser proxy settings even from any type of browser plug-in like Flash or Java applet is also not possible, or at least not in any reliable or compatible way.

I only mention this because sometimes plugins like this provide viable workarounds for when JavaScript is unable to do something ... but here I think you are SOL



Perhaps you could tell us a little more about what you are trying to achieve? Perhaps there is another way to meet your needs.

0


a source







All Articles