如何将本地文件添加到 IE8 中的受信任区域?

Rag*_*dda 10 security internet-explorer-8

我想将本地驱动器 (C:\something.html) 上的文件添加到 IE8 中的受信任区域(我的操作系统是 Windows Server 2003)。添加站点对话框似乎没有记录本地驱动器上的文件条目。

我试过了:

file://C:\something.html
file:\\localhost\c$\something.html
Run Code Online (Sandbox Code Playgroud)

我已经看到其他解决方案(在超级用户和其他地方),例如 Web 标记,允许将您的本地文件视为 Internet 区域的一部分,但我想将我的文件添加到受信任区域。

我怎样才能做到这一点?谢谢。

小智 10

在 Internet Explorer 中,转到

Tools ? Internet Options ? Advanced
Run Code Online (Sandbox Code Playgroud)

向下滚动到安全部分并选中复选框

Allow active content to run in files on My Computer
Run Code Online (Sandbox Code Playgroud)


har*_*ymc 2

危险建议:
安装IIS,添加C:作为虚拟目录,并将localhost添加到受信任区域。

您可以设置权限以允许 IIS 仅访问 C: 上的某些目录。

我知道的唯一其他解决方案是Mark of the Web

例如:

<!-- saved from url=(0023)http://www.contoso.com/ -->
Run Code Online (Sandbox Code Playgroud)