If there are asp,php files in the download space, this setting is not recommended, and if you do not want to allow asp,php files to be downloaded, you can use them.
Step One: Cancel Web site Execution permissions
2. To prevent asp,php files from being downloaded, there is no need to set
Allow IIS to support downloads of arbitrary extensions and unknown extensions
1. Open the IIS Microsoft Management Console (MMC), right-click the local computer name, and then click Properties.
2. Click MIME Type.
3. Click "New".
4. In the Extension box, type an asterisk (*).
5. In the MIME type box, typeApplication/octet-stream。
New downloadable file types in IIS6
IIS 6.0 cannot handle an unknown MIME type
IIS6 only serves requests for files that have a known file name extension. If the file name extension for the requested content is not mapped to a known extension, the server rejects the request. That is, IIS does not support unknown file extension downloads!
Symptom
When you request a file from an IIS 6.0 Web server, and the file extension is not a defined MIME type on the Web server, you receive the following error message:
HTTP Error 404-the file or directory could not be found.
Reason
Earlier versions of IIS contain wildcard MIME mappings, allowing IIS to process any file without having to consider the extension. IIS 6.0 does not contain this wildcard MIME mapping and cannot handle any type of extension defined outside the MimeMap node in the IIS metabase.
Solution
Using MIME types
The Multipurpose Internet Mail Exchange (MIME) type describes how a Web browser or mail application handles files received from the server. For example, when a Web browser requests an item on a server, the MIME type of the object is also requested. Some MIME types, such as graphics, can be displayed inside the browser. Other MIME types, such as word processing documents, need to be displayed using an external help application.
When IIS passes mail messages to the mail application or passes the Web page to the client Web browser, IIS also sends the MIME type of the data that is passed. If additional or embedded files are passed in a specific format, IIS notifies the client application to embed or attach the MIME type of the file. The client application then knows how to process or display data that is being received from IIS.
IIS provides services only for files that have extensions registered in the MIME type list, and also allows you to configure additional MIME types and to change or remove MIME types.
IIS is preconfigured to recognize the default settings for global MIME types. These MIME types are recognized by all Web sites that you create in IIS. MIME types can also be defined at the site and directory level, independent of other or globally defined types. When you view MIME types at the site or directory level, only the type that corresponds to this level is displayed, not all types inherited from the previous level. If the MIME type is modified at a lower level and the same MIME type is applied at the global level, the MIME type at the global level overrides the MIME type modified at the lower level.
If a client request references a file name extension whose extension is not defined in the MIME type, IIS returns a 404.3 error. By adding the wildcard character (*) MIME type, you can also configure IIS to service all files, ignoring the file name extension.
Important You must be a member of the Administrators group on the local computer or you must be delegated the appropriate permissions to perform the following steps. As a security best practice, log on to the computer using an account that is not part of the Administrators group, and then run IIS Manager as an administrator using the Run as command. At the command prompt, type runas/user:administrative_accountname mmc%systemroot%/system32/inetsrv/iis.msc.
Below let IIS6 support DVF file format download:
The DVF file is the Sony compressed Voice file or DV Studio camcorder Graphics file, which is typically used for recording pen files.
EXTENSION:DVF Ascii:ms_voice
You can use the Sony Player Plug-in Version 1.2 for the Microsoft Windows Media Player application to play.
To define a MIME type for a specific extension, follow these steps: 1. Open the IIS Microsoft Management Console (MMC), right-click the local computer name, and then click Properties.
2. Click MIME Type.
3. Click "New".
4. In the Extension box, type the file name extension that you want (for example,. DVF Recorder file).
5. In the MIME type box, type Application/octet-stream.
6. Apply the new settings. Note that you must restart the World Wide Web Publishing Service or wait for the worker process to loop for the changes to take effect. In this example, IIS can now process files with the. dvf extension, and your IIS can provide a download of the recording pen file.
If you want to work with all files regardless of the file name extension (for example, if you cannot predict all the files that will be processed), follow these steps to add a wildcard mapping:
Note: You can only add wildcard mappings to the IIS MIME map as a temporary solution during the troubleshooting process. After you determine that the missing MIME type is the cause of the problem, remove the wildcard mapping, and then add a specific mapping for the MIME type you want to handle. 1. Open the IIS Microsoft Management Console (MMC), right-click the local computer name, and then click Properties.
2. Click MIME Type.
3. Click "New".
4. In the Extension box, type an asterisk (*).
5. In the MIME type box, type Application/octet-stream.
6. Apply the new settings. Note that you must restart the World Wide Web Publishing Service or wait for the worker process to loop for the changes to take effect.
Note: In addition to making these changes at the IIS global layer, you can add the necessary MIME types at the lower level of the metabase. At this point, you can specify that a site or directory that has a specific file name extension be allowed to process, rather than globally, to allow all sites to process the extension