如何停止exe下载甚至目录浏览都关闭 [英] How to stop exe to download even directory browsing is off

查看:67
本文介绍了如何停止exe下载甚至目录浏览都关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IIS上有位置。到该位置目录浏览已关闭。但我在文件夹中有.exe文件。用户可以在浏览器中提供完整路径时下载exe文件。任何建议如何在尝试访问.exe文件时如何重新指向虚拟页面。



-TIA



我尝试了什么:



我在IIS上有位置。到该位置目录浏览已关闭。但我在文件夹中有.exe文件。用户可以在浏览器中提供完整路径时下载exe文件。任何建议如何在尝试访问.exe文件时如何重定向到虚拟页面。

I have location on the IIS. To that location Directory browsing is Turned Off. But I have .exe file in the folder. User is able to download the exe file when he gives the full path in the browser. Any Suggestions how i can re direct to dummy page when tries to access the .exe file.

-TIA

What I have tried:

I have location on the IIS. To that location Directory browsing is Turned Off. But I have .exe file in the folder. User is able to download the exe file when he gives the full path in the browser. Any Suggestions how i can re direct to dummy page when tries to access the .exe file.

推荐答案

如果要阻止所有* .exe文件被下载,那么您可以从站点中删除mime类型定义。如果没有mime处理程序,最终用户将无法获得具有该扩展名的文件
If you want to prevent all *.exe files being downloaded, then you can remove the mime type definition from the site. Without a mime handler the end user cannot get a file with that extension


这篇关于如何停止exe下载甚至目录浏览都关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆