学派吧-Win2008 r2 IIS7.5如何制定目录禁止执行脚本方法的详细介绍-windows教程

这篇文章主要介绍了Win2008 r2 IIS7.5制定目录禁止执行脚本的方法,需要的朋友可以参考下

参考了万网,服务器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文件。

以上就是Win2008 r2 IIS7.5如何制定目录禁止执行脚本方法的详细介绍的详细内容,更多请学派吧其它相关文章!

主题测试文章,只做测试使用。发布者:云大使,转转请注明出处:https://www.xp8.net/server/2433.html

(0)
打赏 微信扫一扫 微信扫一扫
上一篇 2018年12月10日 下午8:24
学派吧-关于Win2008R2服务器配置VPN服务器的图文教程详解-windows教程
下一篇 2018年12月10日 下午8:24

相关推荐

  • 解决PHP5.6版本“No input file specified”的问题

    问题描述:使用TP框架做项目时,在启用REWRITE的伪静态功能的时候,首页可以访问,但是访问其它页面的时候,就提示:“No input file specified.”原因在于使用的PHP5.6是fast_cgi模式,而在某些情况下,不能正确识别path_info所造成的错误默认的.htaccess里面的规则: IfModule mod_rewrite.c…

    服务器运维 2018年7月17日
    4.0K00
  • Linux中Nginx反向代理下的tomcat集群的详解-linux教程

    本篇文章主要介绍了详解Linux中Nginx反向代理下的tomcat集群,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧 Nginx具有反向代理(注意和正向代理的区别)和负载均衡等特点。 这次Nginx安装在 192.168.1.108 这台linux 机器上。安装Nginx 先要装openssl库,gcc,PCRE,zlib库等…

    2019年1月1日
    2.9K00
  • linux/centos下使用kill命令的使用教程方法

    kill命令 kill命令用来删除执行中的程序或工作。kill可将指定的信息送至程序。预设的信息为SIGTERM(15),可将指定程序终止。若仍无法终止该程序,可使用SIGKILL(9)信息尝试强制删除程序。程序或工作的编号可利用ps指令或job指令查看。 语法 kill(选择)(参数) 选项-a:当处理当前进程时,不限制命令名和进程号的对应关系;-l &l…

    2019年4月13日
    4.9K00
  • linux小白如何衡量云硬盘的性能 根据性能选择硬盘

    提供的块存储设备根据类型的不同拥有不同的性能和价格,详细信息请参见 云硬盘类型。由于不同应用程序的工作负载不同,若未提供足够的 I/O 请求来充分利用云硬盘时,可能无法达到云硬盘的最大性能。 一般使用以下指标衡量云硬盘的性能: IOPS:每秒读/写次数,单位为次(计数)。存储设备的底层驱动类型决定了不同的 IOPS。 吞吐量:每秒的读写数据量,单位为MB/s…

    2026年1月13日
    32800
  • 使用Ubuntu18.04和16.04LTS上的Let’s Encrypt保护Nginx教程-学派吧

    本篇文章介绍的内容是关于在Ubuntu系统上安装let’s encrypt客户端,并为在Nginx Web服务器上运行的域颁发SSL证书。 步骤1:先决条件 在开始执行此任务之前,我假设已经: 使用sudo权限shell访问运行的Ubuntu系统,域名已注册并指向服务器的公共IP地址。对于本篇文章我们使用example.com和www.examp…

    服务器运维 2019年5月7日
    4.0K00

发表回复

登录后才能评论
联系我们

联系我们

18838889666

在线咨询: QQ交谈

邮件:xinyun@88.com

工作时间:周一至周五,9:30-18:30,节假日休息

添加微信
添加微信
分享本页
返回顶部