Prevent access to local files



Hi,

I'm hosting the WebBrowser control in my C# application. When I navigate the
control to a web page on the internet that refers to local files (e.g., <img
src="file:///a:/image.jpg">), I get the "There is no disk in the drive..."
error message.

I'm a bit surprised that access from Internet Zone web pages to local files
is not blocked (on WinXP SP2). Then again, if I navigate to the same page in
IE, I don't get the same disk drive error message, so somehow the WebBrowser
control handles the situation differently.

How can I tell the WebBrowser control to block access to local files?

Regards,
Sami


.