Detailed graphic and text explanation of win2008 r2 IIS7.5 setting to force all files to be downloaded directly

黄舟
Release: 2017-06-04 08:35:47
Original
2807 people have browsed it

This article mainly introduces the setting of win2008 r2 IIS7.5 to force all files to be downloaded directly. Friends who need it can refer to it

Sometimes we need to force the download of all files on the website

Refer to the following figure to set up

1. Select the corresponding site - select the MIME type

2. Add the class
File extension: *
MIME type: application/<a href="http://www.php.cn/wiki/125.html" target="_blank">for</a>ce-download

##3. Set "Request Filtering" and turn on "Double Escape"

##Second method: You can fill in application/octet-stream

MIME Type The information will also affect the content of the HTTP header Content-Type when the server returns data to the client. This content allows the client to know what information is being transmitted and what program to use to open it. Even if the same file is transferred, different Content-Types may cause the client to open it in different ways. If you want the client to prompt the user to download, you can try application/octet-stream.

The above is the detailed content of Detailed graphic and text explanation of win2008 r2 IIS7.5 setting to force all files to be downloaded directly. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template