Disable MIME Sniffing for Downloads in Regedit
MIME format sniffing allows Windows and Internet Explorer components to determine a file’s type by inspecting its binary content rather than relying on its file extension. While designed for convenience, disabling this feature prevents ambiguous files from automatically executing as programs. This guide explains how to disable MIME format sniffing for downloads using the Windows Registry Editor.
Method 1: Disable MIME Sniffing via Internet Zone Policies
This method changes the security zone settings to prevent files from opening based on their content.
Press Win + R, type
regedit, and press Enter to open the Registry Editor.Navigate to the following key for the current user:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3(Note: Zone
3represents the Internet Zone. To apply this to the Local Intranet or Trusted Sites, modify zones1or2respectively).In the right pane, locate the DWORD (32-bit) value named
2100(this controls “Open files based on content, not file extension”).- If
2100does not exist, right-click an empty area, select New > DWORD (32-bit) Value, and name it2100.
- If
Double-click
2100, set the Value data to3(Disable), and click OK.0= Enabled3= Disabled
(Optional) To apply this globally for all users on the machine, repeat the steps under:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3
Method 2: Disable MIME Sniffing via FeatureControl
This method completely disables the MIME sniffing feature engine across applications and executables.
In the Registry Editor, navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControlLook for a subkey named
FEATURE_MIME_SNIFFING. If it does not exist:- Right-click FeatureControl, select New >
Key, and name it
FEATURE_MIME_SNIFFING.
- Right-click FeatureControl, select New >
Key, and name it
Select
FEATURE_MIME_SNIFFING, right-click in the right pane, and choose New > DWORD (32-bit) Value.Name the value
*(to apply to all processes) oriexplore.exe(for Internet Explorer/WebOC components).Double-click the newly created value, set its Value data to
0, and click OK.If running a 64-bit version of Windows, repeat this process in the 32-bit compatibility path:
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_MIME_SNIFFING
Applying the Changes
- Close the Registry Editor.
- Restart any active browsers or restart the computer to ensure the new registry policies take effect.