How to prevent of access to the local files through Internet Explorer (WebBrowser ActiveX)?
-
:zzz:In MSDN I’ve found article Q179221 where it is described how to do it using Explorer Policies (keys NoRun, NoFileUrl, NoDrives, etc under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer). But it is not prevent, for example, of viewing end executing files in the frame: . Is anybody ever met with such a task?
-
:zzz:In MSDN I’ve found article Q179221 where it is described how to do it using Explorer Policies (keys NoRun, NoFileUrl, NoDrives, etc under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer). But it is not prevent, for example, of viewing end executing files in the frame: . Is anybody ever met with such a task?
>Is anybody ever met with such a task? Yeah, pretty simple. Just embed webbrowser in your own application, OnNavigate(Navigate2) check url and cancel navigation if it is local drive. Brian