[英]Folder Permissions IIS 7 server. Denying acces to folder to web browsers
我是服務器的新手,我想問一個簡單的問題。
我有一個網站(aspx),其中包含一個用於存儲圖像的文件夾。
手機通過http客戶端(通用處理程序)連接,可以從該文件夾下載圖像,但是我想拒絕Web瀏覽器對該文件夾的訪問,以便看不到圖像。
我該怎么辦?
提前致謝
我想你可以用這樣的東西
<configuration>
<location path="MySubDirectory">
<system.web>
<authorization>
<deny users="*"/> <!-- Denies all users -->
</authorization>
</system.web>
</location>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.