2
添加以下到我的web.config,因此用戶無法下載我的插件:web.config hiddenSegment只用於根目錄?
<system.webServer>
<security>
<requestFiltering>
<hiddenSegments>
<add segment="Plugins" />
</hiddenSegments>
</requestFiltering>
</security>
</system.webServer>
現在我不僅domain.com/Plugins/MyPlugin.dll
被阻塞的問題,也是domain.com/Scripts/ckeditor/plugins/ckplugin.js
。
有沒有辦法配置一個hiddenSegment隻影響根目錄?