I'm trying to build an c# application that uses the WebBrowser Control for, obviouly, webbrowsing. To enhance the security of the system, i'd like to set my own security settings. These are two of the settings i would like to set through the software:
- Disable Download for certain file-extensions (*.exe)
- Disable Cookies
I found, that the WebBrowser Class directly uses the settings from Internet Explorer. Is there any way to use own settings for a specific WebBrower or overide these settings (maybe just temporarely)?
I think the Question may be similar to this:
Overriding IE settings when embedding a WebBrowser control using IE9
(But i'm not sure... :)
EDIT: If I change the Cookie-Settings for Internet Explorer, they will be used for my WebBrowser-Control, right? Is it possible to change these global Settings via C#? Maybe this could be an easy solution for the Problem...