Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Security level for local file in internet explorer

Part of an application is inside a local html file that contains a java applet. Whenever I try to access is the security bar pops up to ask me if I want to execute that content.

I lowered each and every security setting (internet, local and trusted zones) but it looks like local files (executed from c:\myapp\main.html) lives in their own "secret" zone.

I can't even add the file to the trusted sites because the ":" is not considered a valid char in the dialog box.

How can I do this? How can I stop the security bar to show for this file?

Thank you very much!

like image 838
0plus1 Avatar asked May 20 '11 10:05

0plus1


1 Answers

The zone for "My Computer" is normally hidden but it can be made visible by editing the Registry so that this zone appears on the Security tab in the Internet Options dialog box. The key that has to be edited for a particular user account is

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0

The key to be edited if all user accounts are to have this zone visible is

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0

Within the key is a DWORD value "Flags". Setting the data value of the Flags value to 47 (in hexadecimal) causes the "My Computer"security zone to be displayed. Setting the data value of the Flags value to 21 (in hexadecimal) causes the "My Computer" security zone to be hidden.

From http://surfthenetsafely.com/ieseczone3.htm

In fact, you only need to unset the bit 10 that the "2" represents.

like image 91
GDR Avatar answered Sep 29 '22 00:09

GDR