Forum Moderators: open

Message Too Old, No Replies

mark pages on my own computer as 'safe' in IE?

constantly have to check 'accept JavaScript' and 'accept directX'

         

merijnvw

11:08 am on Feb 11, 2010 (gmt 0)

10+ Year Member



Hi, I have a webpage on my computer that I use offline as a cookbook viewer. I use JScript(ActiveX) and JavaScript in it, it all works, but everytime when I open the cookbook, I have to accept both languages to run. I want it to show immediately. Online this can be done by marking pages as 'safe', and then adjusting the preferences for 'safe pages'. I tried to add my cookbook to the safe pages list, but it only accepts pages with http or https on the beginning.

How can I make it so that it doesn't show up the accept bars anymore?

tedster

4:20 pm on Feb 11, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is one of IEs nasty little "security" gestures because locally running scripts are somehow more of a threat to the browser - I never did understand that, by the way.

At any rate, IE applies stricter security to "local zone" than to "internet zone". So, when a webpage is saved from the web to local disk, IE writes what they call a "mark of the web" comment into it before the <html> tag; this allows that local file to be run with internet-zone security. You can add the mark to your own local files, as though they had been saved from the web.

The "mark of the web" is a special comment inserted between the doctype and the <html> open bracket. Here is its generic or non-specific form:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<!-- saved from url=(0014)about:internet -->
<html>
<head>
...

(The "0014" is a count of the characters in the following URL or in a special string such as "about:internet", the case here.)

This generic comment or a specific-domain alternative can be inserted into a local HTML file to avoid the unwanted security warnings.

merijnvw

10:29 pm on Feb 11, 2010 (gmt 0)

10+ Year Member



Good explanation! thanks for that, it seems logic but doesn't work for me, sorry. Even when I got to internet options and accept all things that may be seen as a treat by the browser, it's weird.(And if I do that it's giving me an annoying bar saying I have to change my security properties all the time)
Is there maybe a way I can put a local path in the 'safe pages' thing? Maybe directly insert it into the file where IE stores them?

tedster

10:40 pm on Feb 11, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There is another approach - install server software on your local computer and serve the pages from within there.

kaled

12:57 am on Feb 12, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is there maybe a way I can put a local path in the 'safe pages' thing? Maybe directly insert it into the file where IE stores them?

I can't remember the details, but I think I managed to do this by sharing the folder and viewing it as a shared folder i.e. as \\computer-name\share-name\page.html

I think I marked this path as safe.

Of course, the whole thing is utterly absurd - first Microsoft created a security feature and then they made sure it was disabled for saved pages and then they published how that worked - completely nuts, and then some!

Kaled.

merijnvw

1:12 pm on Feb 12, 2010 (gmt 0)

10+ Year Member



Woohoo that works! Thanks a lot!
Yes it's absurd indeed.