Disable restriction warning when viewing XML files

Internet Explorer 6 in Windows XP SP2 includes extra security, which blocks javascript and vbscript in web-pages placed on the local drive. This security is also activated when opening a XML file placed on the local drive:

To help protect your security, Internet Explorer has restricted this file from showing active content that could access your computer. Click here for options...

To help protect your security, Internet Explorer has restricted this webpage from running scripts or ActiveX controls that could access your computer. Click here for options...

One cannot browse the XML document without right-clicking the warning and selecting "Allow Blocked Content". This can be quite annoying when daily working with XML files.

There are two known solutions to this problem:
  • Use a different browser/viewer to browse XML documents
  • Disable the extra security and allow scripting for all web-pages placed on the local drive
    1. In Internet Explorer go to the Tools-menu and select Internet Options...
    2. Go to the Advanced-tab and scroll down to Security and enable Allow active content to run in files on My Computer
    This change is reflected in this DWORD registry key:

    [HKEY_CURRENT_USER \Software \Microsoft \Internet Explorer \Main \FeatureControl]
    FEATURE_LOCALMACHINE_LOCKDOWN = 0

More info MS KB878461
More info MS KB883969
More info MS KB910878

Credits phdcc.com

Updated: 2 September 2009

Leave a Reply

Your email address will not be published. Required fields are marked *