You should not do this “programmatically”. That is why there is no API for this. Only the user can change their security settings, and they do this using the built-in interface that you have already discovered.
The poor IE team is working overtime, trying to tighten the security of their browser. They are not going to throw something like this to nullify all their efforts in seconds.
Recall that even after selecting this option , a confirmation dialog is presented . How do you suggest "click" programmatically? (Hmm, I thought, don't tell me, probably, the next question you ask.)
Give up trying to do this programmatically and ask the user to do it themselves. Provide a complete help file or other documentation explaining why you are requesting them to make this change, which features will not be available if they do not want to make this change, and what are the possible security risks for such a change. And, of course, specific instructions on how the change is made.
Or, better yet, redesign your application so that it does not require modification of IE security settings throughout the system . It is hard to imagine a legal case. A better solution may require the user to add your site to their "trusted sites". Remember that local pages have different security settings than deleted pages by default.
Cody gray
source share