跳转到主内容

网络设置

本部分让用户管理 AdGuard 过滤网络流量的方式,并提供额外工具来控制网络相关功能。

Network settings *border

将 AdGuard 用作 HTTP 代理

启用此选项可使 AdGuard 作为 HTTP 代理工作。 通过它的所有流量都将被过滤,不仅在您电脑上,还包括家庭网络中的其他设备。

要过滤其他设备的流量,需要在那些设备上安装 AdGuard 根证书并手动设置代理。

其他设置默认开启。

HTTPS 过滤

如今大多数网站使用 HTTPS 加密。 没有 HTTPS 过滤,AdGuard 无法拦截 YouTube、Facebook 或 X(Twitter)等网站上的广告。

除非有特殊原因需要关闭,否则我们建议保持「过滤 HTTPS」选项开启。

通过此选项,您可以:

  • 重新安装或下载 AdGuard 证书

  • 将网站添加到不进行过滤的列表中

  • 选择是否过滤带有 EV(扩展验证)证书的网站

应用及过滤器更新的代理

在此选择 AdGuard 下载过滤器更新或新应用版本时应使用何种代理:系统代理、自定义代理,或不使用代理。

Proxy settings *border

使用 SockFilter 驱动

启用此选项可使用 SockFilter 驱动程序,该驱动程序有助于阻止 Windows 8 及更高版本应用程序中的广告和跟踪器。 如果禁用此选项,AdGuard 将切换到较旧的 WFP 驱动。

SockFilter 首次引入于 v8.0 RC 版本。 它是一个实验性的轻量级内核态网络驱动,工作在套接字层面(TCP/UDP)。 Instead of inspecting or modifying packets as they travel through the full Windows networking stack, a sock filter intercepts socket calls (e.g., connect, send, receive, bind) at a higher, more stable abstraction level. This makes it ideal for applications that need to monitor or control network activity without deep packet processing.

经过充分测试和实现后,SockFilter 相比其他驱动具有以下优势:

  • 工作在更高、更稳定的套接字层面:SockFilter 处理套接字操作而非原始数据包,比 WFP 的低层级数据包过滤更简单、更稳定。
  • No interference with other network drivers: Because it sits above VPN, firewall, and antivirus WFP filters, it avoids filter-ordering problems and compatibility conflicts common in the WFP stack.
  • 大幅降低 NETIO 相关蓝屏风险:SockFilter 不在 NETIO 数据包管道内运行,因此避免了 WFP 标注错误处理缓冲区、分类结果或数据包内存导致的典型崩溃场景。

When it comes to disadvantages, SockFilter driver sees only socket-level operations and does not capture traffic generated by other kernel drivers or components that bypass the standard Winsock API. From a low-level networking perspective, this can be viewed as a limitation, since the driver cannot access raw packets or inspect non-socket traffic. However, for an ad-blocking application, this behavior is not just acceptable but optimal. 所有来自浏览器和用户态应用的相关流量都通过标准套接字,这正是我们需要控制的。 At the same time, ignoring low-level driver traffic removes unnecessary complexity, avoids compatibility issues, and keeps the system stable.