Disabling the Netscape 7 Menu Bar

Just about any web page encryption can be bypassed using the Save Page As item in the File menu of Netscape 7. I haven't found any page encryption program that handles this situation which means that they are all open to having their page code decrypted in Netscape 7 in about 15 seconds. The only way of blocking this decryption method is to block your visitors access to the menu if they are using that specific browser. The following script will do this:

function sm() {if (ns7menu()) window.menubar.visible=true;}
function hm() {if (ns7menu()) window.menubar.visible=false;}
function ns7menu() {
var agt=navigator.userAgent.toLowerCase();
return agt.indexOf("netscape/7.0") != -1 && window.menubar;

All you need to do to get the menu to disappear when your page opens and reappear when it closes is to add onload="hm();" onunload="sm();" to the body tag of your page.

I recommend adding this code to your page before you encrypt it. Of course it will still be possible to decrpyt your web page but not quite so quickly.


This article written by Stephen Chapman, Felgall Pty Ltd.

go to top

FaceBook Follow
Twitter Follow