<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <handlers> <!-- 取消asp文件执行--> <remove name="ASPClassic" /> <!-- 取消aspx 执行--> <remove name="PageHandlerFactory-ISAPI-4.0_64bit" /> <remove name="PageHandlerFactory-ISAPI-4.0_32bit" /> <remove name="PageHandlerFactory-ISAPI-2.0-64" /> <remove name="PageHandlerFactory-ISAPI-2.0" /> </handlers> <!-- 取消脚本执行--> <handlers accessPolicy="Read" /> <!-- 允许脚本执行--> <handlers accessPolicy="Read, Script" /> </system.webServer> </configuration>
亲爱的:若该文章解决了您的问题,可否收藏+评论+分享呢?
文章评论 本文章有个评论