Removing Global MIME Types
Updated: August 22, 2005
Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1
If you want to globally restrict IIS from serving files with certain extensions, you can remove the related MIME types from the global list of registered MIME types in IIS Manager.
If you use IIS Manager to remove a MIME type mapping, you must also verify that the MIME type does not exist in the registry at HKEY_CLASSES_ROOT\extension. If the MIME type also exists in the registry, you must remove it. If the MIME type continues to exist in the registry, files with that extension continue to be served. Be aware, however, that if you remove a MIME type mapping from the registry, other applications may be affected, because the registry database is shared by multiple applications.
|You must be a member of the Administrators group on the local computer to perform the following procedure or procedures. As a security best practice, log on to your computer by using an account that is not in the Administrators group, and then use the runas command to run IIS Manager as an administrator. At a command prompt, type runas /user:Administrative_AccountName "mmc %systemroot%\system32\inetsrv\iis.msc".|
In IIS Manager, expand the local computer, right-click the computer on which you want to add a MIME type, and click Properties.
Click MIME Types.
From the Registered MIME types list, click the MIME type you want to remove, and then click Remove.
For information about the inheritance and merge behavior of MIME types, see MIME Types.