前往顾页
以后地位: 主页 > 收集编程 > .Net实例教程 >

Windows2008 IIS7.5禁用脚本的履行体例

时候:2018-08-15 22:26来源:知行网www.zhixing123.cn 编辑:麦田守望者

办事器Windows2008 IIS7.5可以做一下设置禁用脚本的履行体例--------需求避免某个目次的脚本履行权限,您可以在要禁用脚本履行权限的目次建立一个web.config文件,内里插手下面的代码:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <handlers>
            <remove name="ASPClassic" />
            <remove name="PHP-FastCGI" />
            <remove name="ASPNET-ISAPI-1.1-AXD" />
            <remove name="ASPNET-ISAPI-1.1-HttpRemotingHandlerFactory-rem" />
            <remove name="ASPNET-ISAPI-1.1-HttpRemotingHandlerFactory-soap" />
            <remove name="ASPNET-ISAPI-1.1-PageHandlerFactory" />
            <remove name="ASPNET-ISAPI-1.1-SimpleHandlerFactory" />
            <remove name="ASPNET-ISAPI-1.1-WebServiceHandlerFactory" />
            <remove name="AssemblyResourceLoader-Integrated" />
            <remove name="AXD-ISAPI-2.0" />
            <remove name="AXD-ISAPI-2.0-64" />
            <remove name="HttpRemotingHandlerFactory-rem-Integrated" />
            <remove name="HttpRemotingHandlerFactory-rem-ISAPI-2.0" />
            <remove name="HttpRemotingHandlerFactory-rem-ISAPI-2.0-64" />
            <remove name="HttpRemotingHandlerFactory-soap-Integrated" />
            <remove name="HttpRemotingHandlerFactory-soap-ISAPI-2.0" />
            <remove name="HttpRemotingHandlerFactory-soap-ISAPI-2.0-64" />
            <remove name="PageHandlerFactory-Integrated" />
            <remove name="PageHandlerFactory-ISAPI-2.0" />
            <remove name="PageHandlerFactory-ISAPI-2.0-64" />
            <remove name="Perl-CGI" />
            <remove name="Perl-ISAPI" />
            <remove name="rules-64-ISAPI-2.0" />
            <remove name="rules-Integrated" />
            <remove name="rules-ISAPI-2.0" />
            <remove name="SecurityCertificate" />
            <remove name="SimpleHandlerFactory-Integrated" />
            <remove name="SimpleHandlerFactory-ISAPI-2.0" />
            <remove name="SimpleHandlerFactory-ISAPI-2.0-64" />
            <remove name="svc-Integrated" />
            <remove name="svc-ISAPI-2.0" />
            <remove name="svc-ISAPI-2.0-64" />
            <remove name="TraceHandler-Integrated" />
            <remove name="TRACEVerbHandler" />
            <remove name="WebAdminHandler-Integrated" />
            <remove name="WebServiceHandlerFactory-Integrated" />
            <remove name="WebServiceHandlerFactory-ISAPI-2.0" />
            <remove name="WebServiceHandlerFactory-ISAPI-2.0-64" />
            <remove name="xoml-64-ISAPI-2.0" />
            <remove name="xoml-Integrated" />
            <remove name="xoml-ISAPI-2.0" />
        </handlers>
    </system.webServer>
</configuration>

保存后就设置了该文件夹和子容器只需读的权限,而没有脚本履行权限。如果要规复脚本权限就直接删除该目次下的web.config文件。

顶一下
(0)
0%
踩一下
(0)
0%
------分开线----------------------------
标签(Tag):Windows
------分开线----------------------------
颁发评论
请自发遵循互联网相关的政策法规,严禁公布色情、暴力、革命的谈吐。
评价:
神色:
考证码:点击我更换图片
猜你感兴趣