2

I've found out how to do it for Trusted Sites, but can't find for the Local Intranet. I'm talking about IE Security zones from Internet Options.

agnieszka
  • 14,897
  • 30
  • 95
  • 113
  • Sorry - voted to close before I saw "programmatically". My bad, would retract my close vote if I could. – Dominic Rodger Oct 13 '09 at 12:47
  • @Dominic: Just click on the "Down" arrow again. – Aaron Digulla Oct 13 '09 at 12:49
  • @Aaron - I didn't downvote, I voted to close. – Dominic Rodger Oct 13 '09 at 12:50
  • I would consider this a security risk, if sites can somehow be included to a more trusted zone without user interference. Basically, you're telling the browser that the site is part of the local Intranet. Then again, I wonder if this is even possible... You need to be inside the firewalled area to have your site included in this zone. – Wim ten Brink Oct 13 '09 at 14:00

2 Answers2

6

It turned out that it is exactly the same as adding to 'Trusted Sites' (stackoverflow answer) but with setting the registry value to 1, not 2.

Community
  • 1
  • 1
agnieszka
  • 14,897
  • 30
  • 95
  • 113
3

Here's a link that contains a C# project that appears to be able to do this:

http://blogs.msdn.com/ie/archive/2005/01/26/361228.aspx

Here's a link to the project's source code:

http://ieblog.members.winisp.net/content/SetZoneMappingDemo.zip

MusiGenesis
  • 74,184
  • 40
  • 190
  • 334