学派吧-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

相关推荐

  • apache如何做到日志分割-Linux运维-学派吧

    现在许多网站都是用 apache 做 web 代理的,随时间时间的推长,apache 的访问日志 access.log 会越来越大,所以如果能实现每天分割成一个新得日志,这是比较方便管理的。 当然,apache 本身就具备这样的功能,我需要在 apache 的配置文件中,每个网站的日志部分需要调整成如下的格式 httpd.conf:ErrorLog “| /…

    2018年9月30日
    2.3K00
  • 阿里云centos如何挂载NAS文件系统教程分享

    今天给一个阿里云客户挂载了NAS文件分享系统、也挂了好久。。重启老掉。。最后发现是买的极速型NAS。。郁闷啊。。   下面开始配置 1.阿里云购买NAS文件存储系统  (推荐阿里云代理 QQ 690624价格优惠) 购买后挂载地址为 1301dxxxx-crk30.cn-beijing.nas.aliyuncs.com 2.centos 安装NFS…

    服务器运维 2019年5月11日
    6.3K00
  • Nginx与Apache环境防盗链设置方法-Linux运维-学派吧

    有需要服务器方面的需求和咨询,可以联系博主QQ 7271895(收费) Nginx防盗链方法 Apache防盗链方法 说明:很多人的VPS流量是有限的,而一般情况下我们放在网站上的媒体文件都是可以被别人引用的,我们的文件也就成了别人的免费外链,可想而知流量会消耗的有多快,这时候设置一下防盗链还是很有必要的。 根据我们搭建的系统环境不同,我们在Nginx和Ap…

    服务器运维 2018年9月30日
    2.3K00
  • 介绍linux磁盘冗余阵列实例教程分析-学派吧

    如果您有服务器咨询问题、购买问题、可以联系我们客服 7271895 690624 商祺云-阿里代理、景安代理、西部代理 RAID防止硬盘物理损坏以及增加存储设备的吞吐量,RAID常见的组合有0、1、5、和10 RAID0:至少需要两块硬盘,可以有效提高硬盘的性能和吞吐量,但没有数据的冗余和错误修复能力 将多块硬盘通过硬件或软件的方式串联在一起,成为一个大的卷…

    服务器运维 2019年1月17日
    2.4K00
  • 如何在Docker容器里创建Apache Web服务-Linux运维-学派吧

    有需要服务器方面的需求和咨询,可以联系博主QQ 7271895(收费) 1. CentOS 和 Ubuntu安装 Docker 2. 创建Apache容器 作为Linux系统管理员,或多或少都有可能听说过Docker。因为这款软件可以有效降低运营成本,提升系统部署速度,让系统管理工作变得十分轻松。 但这一切也不是变魔术,Docker只是一个容器管理平台,可以…

    2018年9月30日
    2.2K00

发表回复

登录后才能评论
联系我们

联系我们

18838889666

在线咨询: QQ交谈

邮件:xinyun@88.com

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

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