如何在安装过程中向应用程序添加防火墙权限?

发布于 2024-09-02 10:58:39 字数 65 浏览 9 评论 0原文

我听说您可以在安装过程中为您的应用程序添加例外,以允许其通过防火墙访问互联网。

有人知道该怎么做吗?

I've heard that you can, during installation, add an exception for your app to give permission for it to access the internet through the firewall.

Anyone know how to do this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

紫﹏色ふ单纯 2024-09-09 10:58:39

在许多情况下,替代方法是建议用户完全禁用防火墙,或者确定当您的服务器端口开始侦听时 Windows 会发出提示。这两种选择都是糟糕的选择:一种可能会让机器对任何事情开放,另一种则训练它们不加批判地批准安全提示。

您可以轻松地让应用程序将自身添加或删除为防火墙例外。他们甚至可以禁用/启用防火墙,这是一个非常糟糕的主意。但作为安装/卸载操作的一部分添加和删除异常通常是一个更好的主意。

Microsoft 描述该过程的一个地方是 面向游戏开发人员的 Windows 防火墙

如果您的安全性很差,您仅依靠软件防火墙进行保护,您可以随时在防火墙上设置“无例外”模式。当然,这会将您的用户减少为互联网服务(如广播电视接收)的被动消费者。

The alternative in many cases is to suggest that users disable the firewall entirely or ok the prompt Windows raises when your server ports begin to listen. Both of these are bad options: one risks leaving the machine open to anything and the other trains them to approve security prompts uncritically.

You could easily have your applications add and remove themselves as firewall exceptions. They could even disable/enable the firewall, a really bad idea. But it's usually a better idea to add and remove exceptions as part of install/uninstall operations.

One place where Microsoft describes the process is Windows Firewall for Game Developers.

If your security is so poor you rely on a software firewall alone for protection you can always set "no exceptions" mode on the firewall. Of course this reduces your users to passive consumers of Internet services, à la broadcast television reception.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文