How do I programmatically add a site to the Local Intranet zone?

I found out how to do this for trusted sites, but cannot find it for my local intranet. I'm talking about IE security zones from Internet Options.

+2


source to share


2 answers


It turned out to be exactly the same as adding to the "trusted sites" ( fooobar.com/questions/136481 / ... ), but setting the registry value to 1, not 2.



+5


source


Here's a link that contains a C # project that can 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

+2


source







All Articles