2013-07-27 41 views
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隻影響根目錄?

回答

0

我解決了這個問題,通過我的插件文件夾中的web.config,我阻止* .dll文件被下載...