By Craig Buckler

How to Unblock Unsafe Attachments in Microsoft Outlook

By Craig Buckler

This article was written in 2010 and remains one of our most popular posts. If you’re keen to learn more about email systems, you may find this recent article on taking control of your inbox of great interest.

There’s a vast range of desktop and online email clients but it’s hard to beat Microsoft Outlook. The application has been around since 1997 and, despite a few dodgy decisions regarding HTML rendering, it’s still the email client of choice for me and many others.

Unfortunately, there’s an Outlook message web developers hate:

Outlook blocked access to the following potentially unsafe attachments…

Thanks Microsoft. I know why you’re blocking that JavaScript file, but I know what it is and I really, really want it.

Outlook doesn’t allow you to unblock unsafe attachments. Fortunately, there is a way to obtain the file and prevent the embarrassment of requesting a renamed version. Before we start…


We’re about to delve into the Windows registry. Please move along if you don’t know what the registry is or have never dabbled with it before. It’s a dangerous place — once false move and your PC will explode.

The fix will also reduce Outlook security settings. That’s not a problem for someone with reasonable IT knowledge, but it’s not for everyone.

Still here? OK, here’s what you do:

1. Close Outlook

2. Run regedit.exe
Navigate to:


Where XX.X indicates your version of Outlook:

  • 14.0 for Microsoft Office 2010
  • 12.0 for Microsoft Office 2007
  • 11.0 for Microsoft Office 2003
  • 10.0 for Microsoft Office 2002
  • 9.0 for Microsoft Office 2000

3. Create a new value
Create a new string value key in that location named:


4. Choose your ‘safe’ file types
Edit the key and enter a list of attachment extensions you want to unblock. Each should start with a period and be separated with a semi-colon. For example…

To unblock JavaScript files only, enter:


To unblock JavaScript, VBScript, and exe files, enter:


Click OK to save the value then exit regedit.

5. Restart Outlook
The attachment should be magically unblocked. Try rebooting if that’s not the case.

Microsoft provide a useful support page with alternative options and configuration advice for those using Exchange Server.

If you enjoyed reading this post, you’ll love Learnable; the place to learn fresh skills and techniques from the masters. Members get instant access to all of SitePoint’s ebooks and interactive online courses, like Social Media Marketing for Business.


    Thanks for this advice.

    I recently searched the web for such a functionality…nagging Outlook blocked html and javascript Files!

    …made my day =)

  • king lizard

    There’s a cool free app from CodeTwo called CodeTwo Attach Unblocker. It’s and Outlook add-in which allows to open attchments blocked in Outlook by default. Works with Outlook 2007 and 2010 (even 64-bit)…

  • Ken

    Perfect! Thank you.

  • Codaham

    Thanks for your help! Worked Perfectly!

  • beth ann

    this approach didn’t work for me. What worked for me was to go into each app (word, ppt, xls); go to trust center and under protected view uncheck “enable protected view for outlook attachments” .

    file>options>trust center>trust center settings>protected view… uncheck “enable…”

  • Tim

    Thx, this worked!

  • Malicious Male

    God bless really helped me recover my work which I accidentally deleted from eclipse but had sent it as an email to colleague..many thanks

Get the latest in Front-end, once a week, for free.