A proxy auto-config (PAC) file defines how web browsers and other user agents can automatically choose the appropriate proxy server for fetching a given URL.
Questions tagged [pac]
38 questions
14
votes
3 answers
How to automatically configure username/password with proxy PAC file?
I have rather complex proxy setup and one of those proxies requires username/password. Is there a way to configure the username/password so that users don't have to enter them when traffic is redirected to this one proxy? Atleast returning PROXY…
Raynet
- 511
- 2
- 4
- 11
12
votes
3 answers
How to debug pac file in chrome without alert function?
I recently experienced a problem with a new pac file with chrome, (same pac file with IE and Firefox works).
I supposed that my problem is due to myIpAddress() function, see this post, which do not return my main ip address.
I would like to make…
Antoine
- 305
- 1
- 3
- 11
12
votes
2 answers
How can I debug PAC (proxy auto config) on Windows 8.1 (IE11 and Modern UI)?
On older systems such as Windows 7 + IE10, calling "alert()" in the PAC file would cause a dialog being shown. However, with Windows 8.1 no dialogs are displayed even if IE11 seems to be making use the PAC.
My current situation is IE11 can use the…
Jackie Ku
- 121
- 1
- 1
- 4
5
votes
1 answer
PAC files linking to other PAC files?
If I am in one autoproxy PAC file and returning the "PROXY xxx.com:80" option, can that link be to another PAC file? Do the url and host parameters for FindProxyForURL(url, host) stay the same or is there something lost?
Continuing on the same…
beauXjames
- 103
- 8
5
votes
2 answers
dnsResolve and isInNet functions Problem
We have a Proxy.pac file:
function FindProxyForURL(url, host) {
if (dnsResolve("ProxyServer") == "10.1.1.116")
if (dnsDomainLevels(host) == 0 ||
isInNet(host, "10.0.0.0","255.0.0.0") ||
isInNet(host, "125.0.0.0","255.0.0.0")…
carloslone
- 51
- 1
- 1
- 3
4
votes
1 answer
Internet / proxy problems Internet Explorer (PAC file)
we have some internet/proxy problems in our network since 2 weeks. Users are getting sporadic errors "This page can't be displayed" in Internet Explorer 11 when trying to access websites - but not the whole time. Sometimes it works for 10 minutes,…
Niko21
- 49
- 5
4
votes
1 answer
using IPv6 addresses in proxy.pac
When creating PAC files, one can use functions like isInNet, for example
if (isInNet(host, "10.9.9.9", "255.0.255.0"))
return "DIRECT";
However, it doesn't make sense to use IP and wildcard/mask when using
IPv6 address.
My question is, what is the…
user687083
3
votes
2 answers
Why does "file:///Users/username/Library/proxy.pac" not work in MacOS?
I tested setting up a proxy.pac file via a web server:
networksetup -setautoproxyurl "Wi-Fi" "http://localhost/proxy.pac"
and via a file directly:
networksetup -setautoproxyurl "Wi-Fi" "file:///Users/username/Library/proxy.pac"
The web server…
Peter
- 31
- 3
3
votes
1 answer
Automatic Proxy Configuration Script - Lab Setup Process
I have a requirement to set a test machine which utilises automatic proxy configuration using a WPAD.DAT file.
This is to replicate a customer environment (that we can't use for testing) so we may develop a fix for one of our software packages.
I…
Damo
- 405
- 3
- 7
- 17
3
votes
1 answer
How Do I Prevent MSIE 8 From Reloading PAC File?
Exactly what the title says. I need to stop IE 8 from reloading the PAC file on every request the browser makes.
I only require it to load once per session.
darkAsPitch
- 1,861
- 4
- 25
- 42
2
votes
1 answer
Proxy not working via (.PAC file) for specific app
I'm having some strange problem, In company we moved to new proxy. And we applied it via .PAC file to user machines. Internet working fine, but MS Teams not working.
But when I set manually on PC Proxy Server setup option http://proxy.example.com of…
ShukurBB
- 121
- 3
2
votes
1 answer
Prevent MSIE 8 from reloading PAC file
How do I prevent Internet Explorer from reloading the PAC file? I need to stop IE8 from reloading the PAC file on every request the browser makes.
I only require it to load once per session.
darkAsPitch
- 1,861
- 4
- 25
- 42
2
votes
2 answers
Global (computer-wide) proxy settings from pac file
Our company just changed proxy settings from using one proxy server to a bunch and inserted pac files to IE settings. The problem is, any software that doesn't allow setting proxy script (pac file) explicitly, can't get online any more.
I wanted to…
Andrey
- 354
- 5
- 17
1
vote
0 answers
How to convert a pac script into Linux-style proxy environment variables?
On Windows machines (and networks with a lot of Windows machines), the use of Proxy Autoconfiguration scripts is rather ubiquitous for reasons; on Linux distributions (e.g. CentOS), it is more common for applications to consult several environment…
einpoklum
- 1,622
- 3
- 19
- 30
1
vote
3 answers
Proxy.pac file - accessing a site on non standard port to be sent direct
We are about to start using a proxy.pac file in our environment. It will be a very simple file with most traffic going to the proxy but a handfull of sites going direct (where they are hosted internally etc).
We have a couple of sites that need…
Kip
- 897
- 1
- 12
- 22