Iis prevent file type download
If the page is a script, add a handler. If the file should be downloaded, add a MIME map. For allowing a new file extension, we need to add a new MIME type. Sign in Email. Forgot your password? Search within: Articles Quick Answers Messages.
Tagged as ASP. Stats Active 12 years, 5 months ago. Viewed 6k times. I'm just looking for a simple solution here. Improve this question.
Server question. Server question? Web-application configuration question? Web app config methinks Add a comment. Active Oldest Votes. Improve this answer. Simple solutions Don't put the files in your web accessible directories Put them there with an extension that already isn't served -- I do this a lot -- I add. Lou Franco. I wouldn't, except that I have a reason for them to be there.
That's impractical, and falsifying the extension is an absurd thing to do simply because IIS lacks a basic feature. If I can't change that IIS is required and I can't change the configuration, it's the only way, even if it's absurd. Brian Reiter. Sign up or log in Sign up using Google. Sign up using Facebook. If you add a Mime Type and set an extension like. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?
Collectives on Stack Overflow. Learn more. Asked 10 years, 11 months ago. Active 9 years, 2 months ago. Viewed 5k times. Improve this question. Mariam Mariam 2 2 gold badges 11 11 silver badges 22 22 bronze badges.
Add a comment. Active Oldest Votes. Improve this answer. Samuel Neff Samuel Neff
0コメント