在 windows 7/ie10 中代理 pac 文件

标签 proxy internet-explorer-10 pac

我已经设置了如下所示的代理文件:

function FindProxyForURL(url, host) {
    return  "PROXY 10.10.10.10:8080";
}

10.10.10.10 什么都不存在。在 IE10/Windows 7 x64 中,我在 IE 的局域网设置下禁用了“自动检测设置”和“为您的局域网使用代理服务器”。

浏览器只是忽略 PAC 文件并直接访问网站,因为它们正在浏览器中加载。

我尝试过但没有成功的事情: 1. 通过直接将代理文件路径放入浏览器 URL 字段来检查代理文件路径。可以通过浏览器下载。 2. pac 文件路径中的双斜杠 3.将pac文件移动到不同的位置 4. 带有双斜杠的 Google Chorme

我在这里遗漏了什么吗?

谢谢,

约翰

最佳答案

请引用本页

http://kb.k12usa.com/Knowledgebase/Proxy-Auto-Detect-WPAD-Issues-With-IE-Windows-7

Windows 7 added a feature when using Proxy Auto Detect (WPAD) with Internet Explorer, where if the computer fails to detect the proxy settings once, it will not try again. This is a problem if you then later configure your network to support Proxy Auto Detect. This article explains how to disable this new feature, and allow WPAD to work correctly.

要防止 Windows 跟踪哪个网络支持 WPAD,您需要进行简单的注册表更改:

  1. 单击“开始”按钮,在搜索字段中键入“regedit”,然后从结果列表中选择“regedit.exe”
  2. 通过树导航到“HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Wpad”
  3. 选择“Wpad”文件夹后,右键单击右侧 Pane ,然后单击“新建 -> DWORD(32 位值)”
  4. 将这个新值命名为“WpadOverride”
  5. 双击新的“WpadOverride”值进行编辑
  6. 在“数值数据”字段中,将“0”替换为“1”,然后单击“确定”
  7. 重启电脑

关于在 windows 7/ie10 中代理 pac 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19740905/

相关文章:

用于打开和关闭代理的 Windows 桌面小部件

proxy - nginx有条件的代理传递

javascript - IE10 上的 Bootstrap 兼容性问题

IE10 中的 Javascript 错误 (SCRIPT5022)

Linux 通过 pac 文件配置系统代理

python - 在 Python 中解析 PAC 文件而不使用 C 模块

testing - ZAP 在断点处自动返回相同的响应

C# webclient 和代理服务器

internet-explorer - Internet Explorer 10 "This page cannot be displayed"加载我的网站时

node.js - 在公司代理 .pac 后面使用 npm